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

Issue 1285703004: Update css styles after modifying display mode (Closed)

Created:
5 years, 4 months ago by a.renevier
Modified:
5 years, 3 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Update css styles after modifying display mode After setting display mode, css styles should be recalculated. Before this patch, the new display mode value was taken into account as soon as MediaQueryList::updateMatches() was executed (for example after a call to window.matchMedia. But css media rules were not updated. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201417

Patch Set 1 #

Total comments: 8

Patch Set 2 : updated patch #

Total comments: 2

Patch Set 3 : New patch: call styleResolverChanged() from mediaQueryAffectingValueChanged() #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -20 lines) Patch
M Source/core/dom/Document.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/DevToolsEmulator.cpp View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 1 chunk +7 lines, -9 lines 0 comments Download
A Source/web/tests/data/display_mode.html View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
kenneth.r.christiansen
https://codereview.chromium.org/1285703004/diff/1/Source/web/tests/WebViewTest.cpp File Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/1285703004/diff/1/Source/web/tests/WebViewTest.cpp#newcode2109 Source/web/tests/WebViewTest.cpp:2109: URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL.c_str()), WebString::fromUTF8("display_mode.html")); You forgot to add this display_mode.html file? ...
5 years, 4 months ago (2015-08-17 09:03:36 UTC) #2
Mike West
I'm not a good reviewer for the right times to recalculate style. +eae@, who might ...
5 years, 4 months ago (2015-08-17 15:29:07 UTC) #4
a.renevier
https://codereview.chromium.org/1285703004/diff/1/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1285703004/diff/1/Source/core/frame/FrameView.cpp#newcode1198 Source/core/frame/FrameView.cpp:1198: if (m_frame->document()) { On 2015/08/17 15:29:06, Mike West (traveling) ...
5 years, 4 months ago (2015-08-17 17:25:58 UTC) #5
eae
LGTM but I'd like timloh to take a look as well.
5 years, 4 months ago (2015-08-17 17:29:18 UTC) #7
Timothy Loh
https://codereview.chromium.org/1285703004/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1285703004/diff/20001/Source/core/frame/FrameView.cpp#newcode1204 Source/core/frame/FrameView.cpp:1204: m_frame->document()->styleResolverChanged(); Perhaps this call should be inside mediaQueryAffectingValueChanged(), since ...
5 years, 4 months ago (2015-08-18 04:12:20 UTC) #8
a.renevier
5 years, 4 months ago (2015-08-20 00:16:01 UTC) #9
Timothy Loh
On 2015/08/20 00:16:01, a.renevier wrote: lgtm with nit Please also remove the setNeedsRecalcStyleInAllFrames() calls in ...
5 years, 4 months ago (2015-08-20 05:39:30 UTC) #10
a.renevier
On 2015/08/20 05:39:30, Timothy Loh wrote: > On 2015/08/20 00:16:01, a.renevier wrote: > > lgtm ...
5 years, 4 months ago (2015-08-21 17:10:13 UTC) #11
a.renevier
5 years, 4 months ago (2015-08-21 17:10:19 UTC) #12
Timothy Loh
On 2015/08/21 17:10:13, a.renevier wrote: > On 2015/08/20 05:39:30, Timothy Loh wrote: > > On ...
5 years, 4 months ago (2015-08-24 01:16:47 UTC) #13
a.renevier
On 2015/08/24 01:16:47, Timothy Loh wrote: > On 2015/08/21 17:10:13, a.renevier wrote: > > On ...
5 years, 4 months ago (2015-08-24 18:04:28 UTC) #14
a.renevier
5 years, 4 months ago (2015-08-24 18:06:28 UTC) #15
Timothy Loh
On 2015/08/24 18:04:28, a.renevier wrote: > On 2015/08/24 01:16:47, Timothy Loh wrote: > > On ...
5 years, 4 months ago (2015-08-25 00:04: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/1285703004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285703004/60001
5 years, 3 months ago (2015-08-26 17:55:09 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/93124)
5 years, 3 months ago (2015-08-26 18:06:35 UTC) #21
a.renevier
Oups, I was missing reviewers for Source/Web. Adding bokan and pfeldman
5 years, 3 months ago (2015-08-26 22:23:47 UTC) #23
pfeldman
lgtm
5 years, 3 months ago (2015-08-27 18:59:09 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285703004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285703004/60001
5 years, 3 months ago (2015-08-27 22:06:51 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/114305)
5 years, 3 months ago (2015-08-27 22:25:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285703004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285703004/60001
5 years, 3 months ago (2015-08-28 17:23:24 UTC) #30
commit-bot: I haz the power
5 years, 3 months ago (2015-08-28 18:24:13 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201417

Powered by Google App Engine
This is Rietveld 408576698