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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 1755243002: Partly revert of Conditionally create PaintLayer's scrollable area object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PaintLayerClipper
Patch Set: Partly revert 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayer.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index 23adb3e27190005eaf24509c7b014addd9322369..9d84be86cb0c43633b9c75e0f8561b28b8529179 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -744,7 +744,9 @@ private:
void updateReflectionInfo(const ComputedStyle*);
FilterEffectBuilder* updateFilterEffectBuilder() const;
- bool requiresScrollableArea() const { return m_layoutObject->hasOverflowClip() || m_layoutObject->isLayoutView() || m_layoutObject->styleRef().resize() != RESIZE_NONE; }
+ // FIXME: We could lazily allocate our ScrollableArea based on style properties ('overflow', ...)
+ // but for now, we are always allocating it for LayoutBox as it's safer. crbug.com/467721.
+ bool requiresScrollableArea() const { return layoutBox(); }
void updateScrollableArea();
void dirtyAncestorChainVisibleDescendantStatus();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698