aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2015-10-28 15:23:28 -0700
committerMartin Robinson <mrobinson@igalia.com>2015-11-04 15:29:47 -0800
commit6f4ce7a06e4ba044257aca87b55d5838116ec257 (patch)
tree191a65e57a3747763a9a2b0beb8fb0cd935eb5ee /components/layout/table.rs
parent37201e38071d33308d085f80b967c7cdb55d391f (diff)
downloadservo-6f4ce7a06e4ba044257aca87b55d5838116ec257.tar.gz
servo-6f4ce7a06e4ba044257aca87b55d5838116ec257.zip
Eliminate LAYERS_NEEDED_FOR_DESCENDANTS flag
This flag is no longer necessary, because stacking contexts can now create layers lazily for content that needs to be stacked above a layer. This should reduce the number of layers on pages, hopefully reducing overdraw.
Diffstat (limited to 'components/layout/table.rs')
-rw-r--r--components/layout/table.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs
index c3d7ec137d9..24cb0618fa4 100644
--- a/components/layout/table.rs
+++ b/components/layout/table.rs
@@ -7,8 +7,8 @@
#![deny(unsafe_code)]
use app_units::Au;
+use block::{BlockFlow, CandidateBSizeIterator, ISizeAndMarginsComputer};
use block::{ISizeConstraintInput, ISizeConstraintSolution};
-use block::{self, BlockFlow, CandidateBSizeIterator, ISizeAndMarginsComputer};
use context::LayoutContext;
use display_list_builder::{BlockFlowDisplayListBuilding, BorderPaintingMode};
use euclid::{Point2D, Rect};
@@ -775,11 +775,7 @@ impl TableLikeFlow for BlockFlow {
// At this point, `current_block_offset` is at the content edge of our box. Now iterate
// over children.
- let mut layers_needed_for_descendants = false;
for kid in self.base.child_iter() {
- // Mark flows for layerization if necessary to handle painting order correctly.
- block::propagate_layer_flag_from_child(&mut layers_needed_for_descendants, kid);
-
// Account for spacing or collapsed borders.
if kid.is_table_row() {
has_rows = true;