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

Issue 2741223002: Use correct ScrollbarTheme to paintScrollCorner (Closed)

Created:
3 years, 9 months ago by chaopeng
Modified:
3 years, 9 months ago
Reviewers:
pdr, bokan, pdr.
CC:
chromium-reviews, pdr+renderingwatchlist_chromium.org, zoltan1, blink-reviews-layout_chromium.org, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, dshwang, jchaffraix+rendering, blink-reviews-paint_chromium.org, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use correct ScrollbarTheme to paintScrollCorner This issue is caused by we did not know ScrollbarTheme in FramePainter::paintScrollCorner then use ScrollbarTheme::theme to paint. In this patch, we get ScrollbarTheme from the related scrollbar and use it to paintScrollCorner. BUG=676678 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2741223002 Cr-Commit-Position: refs/heads/master@{#456569} Committed: https://chromium.googlesource.com/chromium/src/+/fe8765486d0c6b4e2e470bf284697fcb9aae5ea4

Patch Set 1 #

Total comments: 2

Patch Set 2 : determine theme in FramePainter::paintScrollCorner #

Total comments: 1

Patch Set 3 : remove NOTREACHED handler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -2 lines) Patch
M third_party/WebKit/Source/core/paint/FramePainter.cpp View 1 2 1 chunk +11 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/custom-scrollbar-dcheck-failed-when-paint-scroll-corner.html View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
chaopeng
PTAL. Thank you.
3 years, 9 months ago (2017-03-10 19:30:23 UTC) #5
bokan
https://codereview.chromium.org/2741223002/diff/1/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp File third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp (right): https://codereview.chromium.org/2741223002/diff/1/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp#newcode964 third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp:964: ScrollbarTheme& PaintLayerCompositor::scrollbarThemeOfScrollCorner() const { FramePainter keeps a reference to ...
3 years, 9 months ago (2017-03-13 13:52:09 UTC) #8
chaopeng
Change to get ScrollbarTheme in FramePainter::paintScrollCorner. PTAL. Thank you.
3 years, 9 months ago (2017-03-13 20:15:34 UTC) #12
bokan
Small style issue but lgtm otherwise https://codereview.chromium.org/2741223002/diff/20001/third_party/WebKit/Source/core/paint/FramePainter.cpp File third_party/WebKit/Source/core/paint/FramePainter.cpp (right): https://codereview.chromium.org/2741223002/diff/20001/third_party/WebKit/Source/core/paint/FramePainter.cpp#newcode239 third_party/WebKit/Source/core/paint/FramePainter.cpp:239: theme = &ScrollbarTheme::theme(); ...
3 years, 9 months ago (2017-03-13 21:33:53 UTC) #15
chaopeng
pdr@ PTAL. Thank you.
3 years, 9 months ago (2017-03-13 22:16:04 UTC) #18
pdr.
On 2017/03/13 at 22:16:04, chaopeng wrote: > pdr@ PTAL. Thank you. This code looks fine ...
3 years, 9 months ago (2017-03-13 22:36:51 UTC) #20
chaopeng
On 2017/03/13 22:36:51, pdr. wrote: > On 2017/03/13 at 22:16:04, chaopeng wrote: > > pdr@ ...
3 years, 9 months ago (2017-03-13 22:52:38 UTC) #21
pdr.
On 2017/03/13 at 22:52:38, chaopeng wrote: > On 2017/03/13 22:36:51, pdr. wrote: > > On ...
3 years, 9 months ago (2017-03-13 22:59:53 UTC) #22
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/2741223002/40001
3 years, 9 months ago (2017-03-14 00:47:41 UTC) #27
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 02:05:14 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/fe8765486d0c6b4e2e470bf28469...

Powered by Google App Engine
This is Rietveld 408576698