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

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

Issue 2638013002: Record box shadow as main thread scrolling reasons (Closed)
Patch Set: nit Created 3 years, 11 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/LayoutBoxModelObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
index 09662931475073ab2077ff2c2f53c418e49a8b56..9df31a040438e2f9a9e6830b1d316dd07db47d2a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
@@ -197,7 +197,12 @@ class CORE_EXPORT LayoutBoxModelObject : public LayoutObject {
// Returns which layers backgrounds should be painted into for overflow
// scrolling boxes.
- BackgroundPaintLocation backgroundPaintLocation() const;
+ // TODO(yigu): PaintLayerScrollableArea::computeNeedsCompositedScrolling may
+ // call this method directly to obtain main thread scrolling reasons due to
+ // background paint location. Once the cases get handled on compositor the
+ // parameter "reasons" could be removed.
+ BackgroundPaintLocation backgroundPaintLocation(
+ uint32_t* reasons = nullptr) const;
// These return the CSS computed padding values.
LayoutUnit computedCSSPaddingTop() const {

Powered by Google App Engine
This is Rietveld 408576698