mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
gfx: Refactor the border drawing code and split out fragment display
list building into multiple functions. This should have no functional changes; it's just code cleanup.
This commit is contained in:
parent
20b961493a
commit
dea8375613
8 changed files with 519 additions and 372 deletions
|
@ -50,8 +50,7 @@ use geom::{Point2D, Rect, Size2D};
|
|||
use serialize::{Encoder, Encodable};
|
||||
use servo_msg::compositor_msg::LayerId;
|
||||
use servo_util::geometry::Au;
|
||||
use servo_util::logical_geometry::WritingMode;
|
||||
use servo_util::logical_geometry::{LogicalRect, LogicalSize};
|
||||
use servo_util::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
|
||||
use std::mem;
|
||||
use std::fmt;
|
||||
use std::iter::Zip;
|
||||
|
@ -290,7 +289,7 @@ pub trait Flow: fmt::Show + ToString + Sync {
|
|||
/// NB: Do not change this `&self` to `&mut self` under any circumstances! It has security
|
||||
/// implications because this can be called on parents concurrently from descendants!
|
||||
fn generated_containing_block_rect(&self) -> LogicalRect<Au> {
|
||||
panic!("generated_containing_block_position not yet implemented for this flow")
|
||||
panic!("generated_containing_block_rect not yet implemented for this flow")
|
||||
}
|
||||
|
||||
/// Returns a layer ID for the given fragment.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue