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

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

Issue 2459293004: Avoid unnecessary relayout of floats when not paginated. (Closed)
Patch Set: Created 4 years, 1 month 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/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 50f69118e2d7629b70ce5cda9e9309ed16c2c712..c2f91e860f112e43f4dfc09b3648791de5e93a0a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -1095,10 +1095,9 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject {
bool shrinkToAvoidFloats() const;
virtual bool avoidsFloats() const;
- void updateFragmentationInfoForChild(LayoutBox& child);
-
- void markChildForPaginationRelayoutIfNeeded(LayoutBox& child,
- SubtreeLayoutScope&);
+ void updateFragmentationInfoForChild(LayoutBox&);
+ bool childNeedsRelayoutForPagination(const LayoutBox&) const;
+ void markChildForPaginationRelayoutIfNeeded(LayoutBox&, SubtreeLayoutScope&);
bool isWritingModeRoot() const {
return !parent() ||

Powered by Google App Engine
This is Rietveld 408576698