layout: Promote absolute positioning, floatedness, and clearance into

flags to avoid virtual calls.

These were showing up really high in the maze solver profile.
This commit is contained in:
Patrick Walton 2014-10-28 15:38:18 -07:00
parent c20bb66aef
commit 587cf98209
7 changed files with 156 additions and 133 deletions

View file

@ -632,7 +632,7 @@ impl BlockFlowDisplayListBuilding for BlockFlow {
self.base.layers = DList::new();
for kid in self.base.children.iter_mut() {
if kid.is_absolutely_positioned() {
if flow::base(kid).flags.is_absolutely_positioned() {
// All absolute flows will be handled by their containing block.
continue
}