Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1755543002: Fix SubtreeLayoutScope not to schedule relayout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index fdce251f83ea92c68b334d2cd53f37c98a64d477..b0c2703bdaa46f27e9a59dec8f41aad70054ce62 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -797,7 +797,8 @@ public:
Element* offsetParent() const;
- void markContainerChainForLayout(bool scheduleRelayout = true, SubtreeLayoutScope* = nullptr);
+ void markContainerChainForLayout(bool scheduleRelayout = true);
+ void markContainerChainForLayout(SubtreeLayoutScope*);
void setNeedsLayout(LayoutInvalidationReasonForTracing, MarkingBehavior = MarkContainerChain, SubtreeLayoutScope* = nullptr);
void setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReasonForTracing, MarkingBehavior = MarkContainerChain, SubtreeLayoutScope* = nullptr);
void clearNeedsLayout();
@@ -1578,6 +1579,8 @@ private:
void setNeedsOverflowRecalcAfterStyleChange();
+ void markContainerChainForLayout(bool scheduleRelayout, SubtreeLayoutScope*);
+
// FIXME: This should be 'markContaingBoxChainForOverflowRecalc when we make LayoutBox
// recomputeOverflow-capable. crbug.com/437012 and crbug.com/434700.
inline void markContainingBlocksForOverflowRecalc();
@@ -1985,7 +1988,7 @@ inline void LayoutObject::setNeedsLayout(LayoutInvalidationReasonForTracing reas
"data",
InspectorLayoutInvalidationTrackingEvent::data(this, reason));
if (markParents == MarkContainerChain && (!layouter || layouter->root() != this))
- markContainerChainForLayout(true, layouter);
+ markContainerChainForLayout(layouter);
}
}
@@ -2022,7 +2025,7 @@ inline void LayoutObject::setChildNeedsLayout(MarkingBehavior markParents, Subtr
setNormalChildNeedsLayout(true);
// FIXME: Replace MarkOnlyThis with the SubtreeLayoutScope code path and remove the MarkingBehavior argument entirely.
if (!alreadyNeededLayout && markParents == MarkContainerChain && (!layouter || layouter->root() != this))
- markContainerChainForLayout(true, layouter);
+ markContainerChainForLayout(layouter);
}
inline void LayoutObject::setNeedsPositionedMovementLayout()

Powered by Google App Engine
This is Rietveld 408576698