mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
layout: Adjust the position of block formatting contexts based on float
placement. Improves Reddit considerably. Closes #3456.
This commit is contained in:
parent
a6ff0479d9
commit
3bb4020ff8
5 changed files with 58 additions and 3 deletions
|
@ -9,6 +9,7 @@ use geom::size::Size2D;
|
|||
|
||||
use serialize::{Encodable, Encoder};
|
||||
use std::default::Default;
|
||||
use std::i32;
|
||||
use std::num::{NumCast, Zero};
|
||||
use std::fmt;
|
||||
|
||||
|
@ -72,6 +73,8 @@ impl Default for Au {
|
|||
}
|
||||
}
|
||||
|
||||
pub static MAX_AU: Au = Au(i32::MAX);
|
||||
|
||||
impl<E, S: Encoder<E>> Encodable<S, E> for Au {
|
||||
fn encode(&self, e: &mut S) -> Result<(), E> {
|
||||
e.emit_f64(to_frac_px(*self))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue