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

Issue 2638013002: Record box shadow as main thread scrolling reasons (Closed)

Created:
3 years, 11 months ago by yigu
Modified:
3 years, 11 months ago
Reviewers:
flackr, bokan, pdr., *ajuma, *jwd
CC:
blink-reviews, blink-reviews-paint_chromium.org, cc-bugs_chromium.org, chromium-reviews, dshwang, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Box shadow should be recorded as main thread scrolling reasons for non-root layers. BUG=660907 TEST=StyleRelatedMainThreadScrollingReasonTest.BoxShadowTest CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2638013002 Cr-Commit-Position: refs/heads/master@{#445728} Committed: https://chromium.googlesource.com/chromium/src/+/c83ddee4e5dcb0fdce873021c2701c9c3a2c547a

Patch Set 1 #

Patch Set 2 : Add flag related test && bug fix #

Total comments: 3

Patch Set 3 : Record box shadow from where it gets detected && remove translucent border #

Total comments: 6

Patch Set 4 : nit #

Total comments: 1

Patch Set 5 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -22 lines) Patch
M cc/input/main_thread_scrolling_reason.h View 1 2 3 4 4 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 2 3 4 3 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 4 chunks +27 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/data/two_scrollable_area.html View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (17 generated)
yigu
Adding two more main thread scrolling reasons. The translucent border one needs to be recorded ...
3 years, 11 months ago (2017-01-17 19:12:03 UTC) #4
pdr.
This looks good to me. I'll defer to Ajuma / Bokan for the final ok.
3 years, 11 months ago (2017-01-17 21:22:02 UTC) #5
bokan
https://codereview.chromium.org/2638013002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2638013002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1781 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1781: !layer->layoutObject()->style()->boxShadow(); This looks like it's doing more than just ...
3 years, 11 months ago (2017-01-17 21:36:55 UTC) #6
flackr
https://codereview.chromium.org/2638013002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2638013002/diff/20001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1781 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1781: !layer->layoutObject()->style()->boxShadow(); On 2017/01/17 21:36:55, bokan wrote: > This looks ...
3 years, 11 months ago (2017-01-17 21:59:42 UTC) #9
yigu
The reason due to box shadow is now recorded from where it gets detected. The ...
3 years, 11 months ago (2017-01-23 18:53:51 UTC) #11
bokan
Thanks, lgtm % nits https://codereview.chromium.org/2638013002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h (right): https://codereview.chromium.org/2638013002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h#newcode200 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h:200: BackgroundPaintLocation backgroundPaintLocation(uint32_t* reasons = 0) ...
3 years, 11 months ago (2017-01-23 19:55:51 UTC) #12
yigu
Thanks:) https://codereview.chromium.org/2638013002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h (right): https://codereview.chromium.org/2638013002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h#newcode200 third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h:200: BackgroundPaintLocation backgroundPaintLocation(uint32_t* reasons = 0) const; On 2017/01/23 ...
3 years, 11 months ago (2017-01-23 20:21:24 UTC) #13
ajuma
cc lgtm
3 years, 11 months ago (2017-01-23 20:37:49 UTC) #16
flackr
LGTM with nit https://codereview.chromium.org/2638013002/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2638013002/diff/60001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1788 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1788: layer->layoutObject()->backgroundPaintLocation( Can we pass mainThreadScrollingReasons into ...
3 years, 11 months ago (2017-01-23 20:52:12 UTC) #17
jwd
histograms lgtm
3 years, 11 months ago (2017-01-24 15:06:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2638013002/80001
3 years, 11 months ago (2017-01-24 15:07:29 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 15:12:23 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c83ddee4e5dcb0fdce873021c270...

Powered by Google App Engine
This is Rietveld 408576698