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

Issue 337883003: Call media query change listeners asynchronously. (Closed)

Created:
6 years, 6 months ago by cbiesinger
Modified:
6 years, 5 months ago
Reviewers:
Yoav Weiss, esprehn, yurys
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-dom_chromium.org, dglazkov+blink, dstockwell, eae+blinkwatch, ed+blinkwatch_opera.com, Eric Willigers, kenneth.christiansen, Mike Lawther (Google), rjwright, rwlbuis, rune+blink, shans, sof, Steve Block, Timothy Loh
Project:
blink
Visibility:
Public.

Description

Call media query change listeners asynchronously. BUG=356487 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177267

Patch Set 1 #

Patch Set 2 : some tests fixed #

Patch Set 3 : all (?) tests fixed #

Patch Set 4 : tests fixed #

Total comments: 12

Patch Set 5 : address review comments #

Patch Set 6 : review comments #

Total comments: 1

Patch Set 7 : oilpan #

Patch Set 8 : no need for .contains #

Patch Set 9 : fix typo #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -34 lines) Patch
M LayoutTests/fast/media/media-query-list-listener.html View 1 2 chunks +30 lines, -21 lines 0 comments Download
M LayoutTests/fast/media/media-query-list-listener-ordering.html View 1 2 chunks +6 lines, -4 lines 0 comments Download
M LayoutTests/inspector-protocol/css/media-query-listener-exception.html View 1 2 3 1 chunk +1 line, -1 line 1 comment Download
M Source/core/css/MediaQueryList.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/MediaQueryList.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/MediaQueryListListener.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/css/MediaQueryListListener.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/MediaQueryMatcher.cpp View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/dom/ScriptedAnimationController.h View 1 2 3 4 5 4 chunks +5 lines, -0 lines 0 comments Download
M Source/core/dom/ScriptedAnimationController.cpp View 1 2 3 4 5 6 7 8 6 chunks +24 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
cbiesinger
6 years, 5 months ago (2014-06-30 23:56:21 UTC) #1
esprehn
https://codereview.chromium.org/337883003/diff/60001/Source/core/css/MediaQueryList.h File Source/core/css/MediaQueryList.h (right): https://codereview.chromium.org/337883003/diff/60001/Source/core/css/MediaQueryList.h#newcode42 Source/core/css/MediaQueryList.h:42: class Listener : public RefCountedWillBeGarbageCollectedFinalized<Listener> { This virtual abstraction ...
6 years, 5 months ago (2014-07-01 00:01:07 UTC) #2
cbiesinger
https://codereview.chromium.org/337883003/diff/60001/Source/core/css/MediaQueryList.h File Source/core/css/MediaQueryList.h (right): https://codereview.chromium.org/337883003/diff/60001/Source/core/css/MediaQueryList.h#newcode42 Source/core/css/MediaQueryList.h:42: class Listener : public RefCountedWillBeGarbageCollectedFinalized<Listener> { On 2014/07/01 00:01:06, ...
6 years, 5 months ago (2014-07-01 00:12:09 UTC) #3
esprehn
Your layering is wrong if calling ensureScriptedAnimationController() has side effects for the future frame. I ...
6 years, 5 months ago (2014-07-01 00:28:09 UTC) #4
cbiesinger
On 2014/07/01 00:28:09, esprehn wrote: > Your layering is wrong if calling ensureScriptedAnimationController() has side ...
6 years, 5 months ago (2014-07-01 01:19:41 UTC) #5
esprehn
lgtm, but I think you want a ListHashSet instead of manually combining them which is ...
6 years, 5 months ago (2014-07-01 01:21:27 UTC) #6
cbiesinger
The CQ bit was checked by cbiesinger@chromium.org
6 years, 5 months ago (2014-07-01 01:34:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbiesinger@chromium.org/337883003/150001
6 years, 5 months ago (2014-07-01 01:35:35 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-01 02:40:19 UTC) #9
commit-bot: I haz the power
Change committed as 177267
6 years, 5 months ago (2014-07-01 03:21:26 UTC) #10
lushnikov
A revert of this CL has been created in https://codereview.chromium.org/368533003/ by lushnikov@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-01 08:12:48 UTC) #11
lushnikov
On 2014/07/01 08:12:48, lushnikov wrote: > A revert of this CL has been created in ...
6 years, 5 months ago (2014-07-01 08:23:02 UTC) #12
yurys
https://codereview.chromium.org/337883003/diff/150001/LayoutTests/inspector-protocol/css/media-query-listener-exception.html File LayoutTests/inspector-protocol/css/media-query-listener-exception.html (right): https://codereview.chromium.org/337883003/diff/150001/LayoutTests/inspector-protocol/css/media-query-listener-exception.html#newcode23 LayoutTests/inspector-protocol/css/media-query-listener-exception.html:23: setTimeout("InspectorTest.completeTest();", 20); This is bound to make the the ...
6 years, 5 months ago (2014-07-11 09:30:22 UTC) #13
Yoav Weiss
On 2014/07/11 09:30:22, yurys wrote: > https://codereview.chromium.org/337883003/diff/150001/LayoutTests/inspector-protocol/css/media-query-listener-exception.html > File LayoutTests/inspector-protocol/css/media-query-listener-exception.html > (right): > > https://codereview.chromium.org/337883003/diff/150001/LayoutTests/inspector-protocol/css/media-query-listener-exception.html#newcode23 ...
6 years, 5 months ago (2014-07-11 14:05:33 UTC) #14
yurys
On 2014/07/11 14:05:33, Yoav Weiss wrote: > On 2014/07/11 09:30:22, yurys wrote: > > > ...
6 years, 5 months ago (2014-07-11 14:43:06 UTC) #15
cbiesinger
On 2014/07/11 14:43:06, yurys wrote: > On 2014/07/11 14:05:33, Yoav Weiss wrote: > > On ...
6 years, 5 months ago (2014-07-11 22:18:58 UTC) #16
esprehn
On 2014/07/11 at 22:18:58, cbiesinger wrote: > ... > > > > Since there were ...
6 years, 5 months ago (2014-07-11 22:32:00 UTC) #17
cbiesinger
On 2014/07/11 22:32:00, esprehn wrote: > On 2014/07/11 at 22:18:58, cbiesinger wrote: > > ...
6 years, 5 months ago (2014-07-12 00:57:37 UTC) #18
yurys
On 2014/07/12 00:57:37, cbiesinger wrote: > oddly, requestAnimationFrame does not fix the test. I'll have ...
6 years, 5 months ago (2014-07-17 07:00:51 UTC) #19
Yoav Weiss
On 2014/07/17 07:00:51, yurys wrote: > On 2014/07/12 00:57:37, cbiesinger wrote: > > oddly, requestAnimationFrame ...
6 years, 5 months ago (2014-07-17 07:06:15 UTC) #20
cbiesinger
I finally figured out how these inspector tests work (fwiw, very unintuitively - test.toString()?!), and ...
6 years, 5 months ago (2014-07-17 19:13:47 UTC) #21
yurys
6 years, 5 months ago (2014-07-18 08:54:37 UTC) #22
Message was sent while issue was closed.
On 2014/07/17 19:13:47, cbiesinger wrote:
> I finally figured out how these inspector tests work (fwiw, very unintuitively
-
> test.toString()?!),
Yeah, that's a bit counter-intuitive. The reason for it is that we need to
inject some testing code into DevTools front-end so we pass it as a text to be
evaled in the front-end context.

> and posted a solution to
> https://codereview.chromium.org/398413002/
> 
> At least, that should fix it - I was never able to reproduce the flakiness
> locally. Let's see what tryservers think.
Thanks for fixing this!

Powered by Google App Engine
This is Rietveld 408576698