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

Issue 748513006: Trigger style recalc when the window's active state change (Closed)

Created:
6 years ago by MuVen
Modified:
6 years ago
Reviewers:
pdr., skobes, rune
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, jdduke (slow), rwlbuis, sof, sivag
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Trigger style recalc when the window's active state change. Trigger style recalc when the window's active state change. This is needed to correctly apply :window-inactive styling to custom scrollbars. BUG=436865 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186842

Patch Set 1 #

Patch Set 2 : removed dumppixels from testcase #

Total comments: 4

Patch Set 3 : addressed review comments #

Patch Set 4 : setting setNeedsStyleRecalc in FrameSelection itself #

Patch Set 5 : Invalidatin all the CustomScrolllbars on window-inactive #

Total comments: 10

Patch Set 6 : addressed review comments #

Patch Set 7 : fixed nit. #

Total comments: 9

Patch Set 8 : Added TestCase for scrollbar width change on window-inactive #

Patch Set 9 : addressed rune comments #

Patch Set 10 : Missed out Updating Scrollbar geometry on styleChanged: Added it now #

Total comments: 2

Patch Set 11 : added scrollbar adjust testcase and proper checks to call recursive apis #

Total comments: 2

Patch Set 12 : rewrittend as mentioned by rune #

Total comments: 5

Patch Set 13 : fixed indentation #

Patch Set 14 : fixed few more indentations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, -0 lines) Patch
A LayoutTests/scrollbars/custom-scrollbar-adjust-on-inactive-pseudo.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +50 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/custom-scrollbar-adjust-on-inactive-pseudo-expected.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/custom-scrollbar-thumb-inactive-pseudo.html View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/custom-scrollbar-thumb-inactive-pseudo-expected.html View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/custom-scrollbar-thumb-width-changed-on-inactive-pseudo.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +124 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/custom-scrollbar-thumb-width-changed-on-inactive-pseudo-expected.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +110 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/resources/scrollable-iframe-customscrollbar.html View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/resources/scrollable-iframe-customscrollbar-expected.html View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/resources/scrollable-subiframe-inactive.html View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/resources/scrollable-subiframe-inactive-expected.html View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 78 (19 generated)
MuVen
Hi Skobes, PTAL. Thanks, MuVen.
6 years ago (2014-11-26 14:43:16 UTC) #3
MuVen
Hi Skobes/Enne, PTAL. Thanks, MuVen.
6 years ago (2014-11-26 14:43:24 UTC) #4
MuVen
friendly ping !!!
6 years ago (2014-11-28 16:50:55 UTC) #7
skobes
I see there is already a test for custom scrollbars with :window-inactive styling: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-inactive-pseudo.html So ...
6 years ago (2014-12-02 02:10:52 UTC) #8
MuVen
Thanks for mentioning the test-case, it helped me in learning new thing. 1. Test-cases passes ...
6 years ago (2014-12-02 11:23:21 UTC) #9
skobes
Thanks for the explanation. The wording of the change description is not very clear. I ...
6 years ago (2014-12-02 17:43:22 UTC) #10
MuVen
Done, Addressed review comments. PTAL. https://codereview.chromium.org/748513006/diff/20001/LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo.html File LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo.html (right): https://codereview.chromium.org/748513006/diff/20001/LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo.html#newcode23 LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo.html:23: Pellentesque habitant morbi tristique ...
6 years ago (2014-12-02 18:40:35 UTC) #11
skobes
lgtm
6 years ago (2014-12-02 18:43:19 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/748513006/40001
6 years ago (2014-12-02 18:53:53 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/21215)
6 years ago (2014-12-02 19:03:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/748513006/60001
6 years ago (2014-12-03 13:43:26 UTC) #18
MuVen
Hi Skobes, I have modified the patch, i tried to set setNeedsStyleRecalc in FrameSelection itself. ...
6 years ago (2014-12-03 14:40:37 UTC) #20
skobes
still lgtm
6 years ago (2014-12-03 16:40:26 UTC) #21
MuVen
@pdr, PTAL. Need owners approval.
6 years ago (2014-12-03 16:43:27 UTC) #22
pdr.
On 2014/12/03 at 16:43:27, sataya.m wrote: > @pdr, PTAL. Need owners approval. Does this patch ...
6 years ago (2014-12-03 19:36:12 UTC) #23
MuVen
On 2014/12/03 19:36:12, pdr wrote: > On 2014/12/03 at 16:43:27, sataya.m wrote: > > @pdr, ...
6 years ago (2014-12-04 03:13:16 UTC) #24
pdr.
On 2014/12/04 at 03:13:16, sataya.m wrote: > On 2014/12/03 19:36:12, pdr wrote: > > On ...
6 years ago (2014-12-04 03:50:42 UTC) #25
MuVen
On 2014/12/04 03:50:42, pdr wrote: > On 2014/12/04 at 03:13:16, sataya.m wrote: > > On ...
6 years ago (2014-12-04 04:03:37 UTC) #26
pdr.
On 2014/12/04 at 04:03:37, sataya.m wrote: > On 2014/12/04 03:50:42, pdr wrote: > > On ...
6 years ago (2014-12-04 04:09:15 UTC) #27
MuVen
On 2014/12/04 04:09:15, pdr wrote: > On 2014/12/04 at 04:03:37, sataya.m wrote: > > On ...
6 years ago (2014-12-04 04:13:05 UTC) #28
pdr.
On 2014/12/04 at 04:13:05, sataya.m wrote: > On 2014/12/04 04:09:15, pdr wrote: > > On ...
6 years ago (2014-12-04 04:24:43 UTC) #29
skobes
+rune@opera.com I agree with pdr that we should try not to add complexity here. I ...
6 years ago (2014-12-04 07:02:55 UTC) #30
MuVen
sure, it should even support multiple-customscrollbar-inactive.html testcase attached in the bug. Share your inputs to ...
6 years ago (2014-12-04 07:13:48 UTC) #31
rune
On 2014/12/04 at 07:02:55, skobes wrote: > +rune@opera.com > > I agree with pdr that ...
6 years ago (2014-12-04 08:13:54 UTC) #32
MuVen
PTAL. I have made minimal changes to invalidate scrollbar on window focus changed.
6 years ago (2014-12-05 14:25:18 UTC) #33
rune
On 2014/12/05 at 14:25:18, sataya.m wrote: > PTAL. I have made minimal changes to invalidate ...
6 years ago (2014-12-05 15:13:48 UTC) #34
MuVen
true, implemented this API, just by following the TextSelection window-inactive(invalidatePaintForSelection).
6 years ago (2014-12-05 15:20:55 UTC) #35
MuVen
@rune, as done for webkit-scrollbar @ https://codereview.chromium.org/653423003 for window-active also we need to do ? ...
6 years ago (2014-12-05 15:26:43 UTC) #36
MuVen
On 2014/12/05 15:26:43, muven wrote: > @rune, as done for webkit-scrollbar @ https://codereview.chromium.org/653423003 > for ...
6 years ago (2014-12-05 15:37:34 UTC) #37
rune
On 2014/12/05 at 15:26:43, sataya.m wrote: > @rune, as done for webkit-scrollbar @ https://codereview.chromium.org/653423003 > ...
6 years ago (2014-12-06 00:04:00 UTC) #38
pdr.
A few more comments. I think the approach you've taken is good. https://codereview.chromium.org/748513006/diff/80001/LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo-expected.html File LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo-expected.html ...
6 years ago (2014-12-06 04:17:53 UTC) #39
MuVen
PTAL. Thanks, ~MuVen. https://codereview.chromium.org/748513006/diff/80001/LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo-expected.html File LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo-expected.html (right): https://codereview.chromium.org/748513006/diff/80001/LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo-expected.html#newcode32 LayoutTests/scrollbars/custom-scrollbarthumb-inactive-pseudo-expected.html:32: <iframe src="resources/scrollable-iframe.html"></iframe> On 2014/12/06 04:17:53, pdr ...
6 years ago (2014-12-06 13:27:03 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/748513006/240001
6 years ago (2014-12-06 15:30:31 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/21592)
6 years ago (2014-12-06 15:34:09 UTC) #50
MuVen
@pdr, PTAL, in #46 comments i have mentioned about and addressed all the review comments.
6 years ago (2014-12-08 16:38:20 UTC) #51
pdr.
On 2014/12/08 at 16:38:20, sataya.m wrote: > @pdr, PTAL, in #46 comments i have mentioned ...
6 years ago (2014-12-08 18:41:14 UTC) #52
skobes
https://codereview.chromium.org/748513006/diff/240001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/748513006/diff/240001/Source/core/frame/FrameView.cpp#newcode351 Source/core/frame/FrameView.cpp:351: toFrameView(widget)->invalidateAllCustomScrollbarsOnActiveChanged(); Sorry to revisit this but I am still ...
6 years ago (2014-12-08 21:48:04 UTC) #53
rune
https://codereview.chromium.org/748513006/diff/240001/Source/core/editing/FrameSelection.cpp File Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/748513006/diff/240001/Source/core/editing/FrameSelection.cpp#newcode1467 Source/core/editing/FrameSelection.cpp:1467: document->updateRenderTreeIfNeeded(); Updating the render tree synchronously immediately before invalidating ...
6 years ago (2014-12-08 23:14:26 UTC) #55
MuVen
PTAL. https://codereview.chromium.org/748513006/diff/240001/Source/core/editing/FrameSelection.cpp File Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/748513006/diff/240001/Source/core/editing/FrameSelection.cpp#newcode1467 Source/core/editing/FrameSelection.cpp:1467: document->updateRenderTreeIfNeeded(); the text reflow has been solved earlier ...
6 years ago (2014-12-09 09:33:07 UTC) #56
rune
https://codereview.chromium.org/748513006/diff/240001/Source/core/editing/FrameSelection.cpp File Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/748513006/diff/240001/Source/core/editing/FrameSelection.cpp#newcode1467 Source/core/editing/FrameSelection.cpp:1467: document->updateRenderTreeIfNeeded(); On 2014/12/09 at 09:33:07, muven wrote: > the ...
6 years ago (2014-12-09 10:36:33 UTC) #57
MuVen
@rune, PTAL. https://codereview.chromium.org/748513006/diff/240001/Source/core/editing/FrameSelection.cpp File Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/748513006/diff/240001/Source/core/editing/FrameSelection.cpp#newcode1467 Source/core/editing/FrameSelection.cpp:1467: document->updateRenderTreeIfNeeded(); On 2014/12/09 10:36:33, rune wrote: > ...
6 years ago (2014-12-09 10:44:20 UTC) #59
rune
On 2014/12/09 at 10:44:20, sataya.m wrote: > @rune, PTAL. My issues are resolved now. Did ...
6 years ago (2014-12-09 10:51:54 UTC) #60
MuVen
On 2014/12/09 10:51:54, rune wrote: > On 2014/12/09 at 10:44:20, sataya.m wrote: > > @rune, ...
6 years ago (2014-12-09 10:53:42 UTC) #61
MuVen
PTAL. https://codereview.chromium.org/748513006/diff/320001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/748513006/diff/320001/Source/core/frame/FrameView.cpp#newcode354 Source/core/frame/FrameView.cpp:354: updateScrollbarGeometry(); This snippet was missed. If RootFrameView has ...
6 years ago (2014-12-09 11:29:48 UTC) #62
rune
https://codereview.chromium.org/748513006/diff/320001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/748513006/diff/320001/Source/core/frame/FrameView.cpp#newcode354 Source/core/frame/FrameView.cpp:354: updateScrollbarGeometry(); On 2014/12/09 at 11:29:48, muven wrote: > This ...
6 years ago (2014-12-09 11:41:34 UTC) #63
MuVen
On 2014/12/09 11:41:34, rune wrote: > https://codereview.chromium.org/748513006/diff/320001/Source/core/frame/FrameView.cpp > File Source/core/frame/FrameView.cpp (right): > > https://codereview.chromium.org/748513006/diff/320001/Source/core/frame/FrameView.cpp#newcode354 > ...
6 years ago (2014-12-09 14:46:48 UTC) #64
rune
On 2014/12/09 at 14:46:48, sataya.m wrote: > On 2014/12/09 11:41:34, rune wrote: > > https://codereview.chromium.org/748513006/diff/320001/Source/core/frame/FrameView.cpp ...
6 years ago (2014-12-09 15:30:30 UTC) #65
MuVen
On 2014/12/09 15:30:30, rune wrote: > On 2014/12/09 at 14:46:48, sataya.m wrote: > > On ...
6 years ago (2014-12-09 15:35:51 UTC) #66
rune
On 2014/12/09 at 15:35:51, sataya.m wrote: > On 2014/12/09 15:30:30, rune wrote: > > On ...
6 years ago (2014-12-09 15:59:09 UTC) #67
MuVen
On 2014/12/09 15:59:09, rune wrote: > On 2014/12/09 at 15:35:51, sataya.m wrote: > > On ...
6 years ago (2014-12-09 16:11:26 UTC) #68
rune
On 2014/12/09 at 16:11:26, sataya.m wrote: > On 2014/12/09 15:59:09, rune wrote: > > But ...
6 years ago (2014-12-09 18:02:35 UTC) #69
MuVen
On 2014/12/09 18:02:35, rune wrote: > On 2014/12/09 at 16:11:26, sataya.m wrote: > > On ...
6 years ago (2014-12-09 18:18:28 UTC) #70
MuVen
Hi Rune/Skobes, I have added custom-scrollbar-adjust-on-inactive-pseudo.html testcase and added proper checks to call recursive API's. ...
6 years ago (2014-12-10 06:05:21 UTC) #71
rune
https://codereview.chromium.org/748513006/diff/330001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/748513006/diff/330001/Source/core/frame/FrameView.cpp#newcode352 Source/core/frame/FrameView.cpp:352: if (toFrameView(widget)->hasCustomScrollbars()) hasCustomScrollbars() is traversing the whole widget sub-tree ...
6 years ago (2014-12-10 08:29:32 UTC) #72
MuVen
https://codereview.chromium.org/748513006/diff/330001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/748513006/diff/330001/Source/core/frame/FrameView.cpp#newcode352 Source/core/frame/FrameView.cpp:352: if (toFrameView(widget)->hasCustomScrollbars()) yes this is much simpler, I have ...
6 years ago (2014-12-10 08:44:33 UTC) #73
rune
lgtm if you do tabs -> spaces in your tests. Didn't the check-webkit-style script choke ...
6 years ago (2014-12-10 08:51:38 UTC) #74
MuVen
On 2014/12/10 08:51:38, rune wrote: > lgtm if you do tabs -> spaces in your ...
6 years ago (2014-12-10 09:02:02 UTC) #75
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/748513006/390001
6 years ago (2014-12-10 09:03:05 UTC) #77
commit-bot: I haz the power
6 years ago (2014-12-10 10:27:40 UTC) #78
Message was sent while issue was closed.
Committed patchset #14 (id:390001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186842

Powered by Google App Engine
This is Rietveld 408576698