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

Issue 308003007: [DevTools] Update media queries when resizing with emulation on. (Closed)

Created:
6 years, 6 months ago by dgozman
Modified:
6 years, 6 months ago
Reviewers:
apavlov, dglazkov, pfeldman, ojan
CC:
blink-reviews
Visibility:
Public.

Description

[DevTools] Update media queries when resizing with emulation on. Media query evaluator assumes that device size cannot change, which is wrong in emulation mode. BUG=327641, 386142 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176420

Patch Set 1 #

Total comments: 3

Patch Set 2 : With test #

Total comments: 4

Patch Set 3 : Rebased, added comment #

Total comments: 2

Patch Set 4 : Rebase, updated comment, removed test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M Source/web/WebViewImpl.cpp View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
dgozman
Take a look please. I tried to introduce a setting "deviceSizeMayChange" to mark device-size media ...
6 years, 6 months ago (2014-05-30 13:22:04 UTC) #1
lushnikov
On 2014/05/30 13:22:04, dgozman wrote: > Take a look please. > > I tried to ...
6 years, 6 months ago (2014-05-30 14:08:11 UTC) #2
apavlov
https://codereview.chromium.org/308003007/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/308003007/diff/1/Source/web/WebViewImpl.cpp#newcode1623 Source/web/WebViewImpl.cpp:1623: if (page()->inspectorController().deviceEmulationEnabled() && mainFrameImpl()->frame()->document()) Not sure if it is ...
6 years, 6 months ago (2014-05-30 14:13:53 UTC) #3
ojan
Is it possible to write a test for this? Also, I don't understand the change ...
6 years, 6 months ago (2014-05-31 05:32:39 UTC) #4
dgozman
Please take another look. Resize in device emulation mode means that screen (device) size may ...
6 years, 6 months ago (2014-06-03 12:09:15 UTC) #5
apavlov
lgtm with a comment https://codereview.chromium.org/308003007/diff/20001/LayoutTests/inspector/device-emulation/device-emulation-mq-on-resize.html File LayoutTests/inspector/device-emulation/device-emulation-mq-on-resize.html (right): https://codereview.chromium.org/308003007/diff/20001/LayoutTests/inspector/device-emulation/device-emulation-mq-on-resize.html#newcode137 LayoutTests/inspector/device-emulation/device-emulation-mq-on-resize.html:137: Tests that device width is ...
6 years, 6 months ago (2014-06-04 11:21:06 UTC) #6
dgozman
ojan@, take another look please.
6 years, 6 months ago (2014-06-04 19:22:40 UTC) #7
ojan
> Resize in device emulation mode means that screen (device) size may have changed, so ...
6 years, 6 months ago (2014-06-04 23:27:59 UTC) #8
dgozman
> I think the part I'm missing is the part you say in your description ...
6 years, 6 months ago (2014-06-05 09:00:19 UTC) #9
dgozman
ojan@, ptal. dglazkov@, what do you think about using |useUnfortunateSynchronousResizeMode| here? Is there another way ...
6 years, 6 months ago (2014-06-09 09:46:03 UTC) #10
ojan
https://codereview.chromium.org/308003007/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/308003007/diff/20001/Source/web/WebViewImpl.cpp#newcode1629 Source/web/WebViewImpl.cpp:1629: document->mediaQueryAffectingValueChanged(); I can't think of a better solution, so ...
6 years, 6 months ago (2014-06-10 02:38:06 UTC) #11
dglazkov
On 2014/06/09 at 09:46:03, dgozman wrote: > ojan@, ptal. > > dglazkov@, what do you ...
6 years, 6 months ago (2014-06-10 04:51:05 UTC) #12
dgozman
> > dglazkov@, what do you think about using |useUnfortunateSynchronousResizeMode| > here? Is there another ...
6 years, 6 months ago (2014-06-10 10:01:30 UTC) #13
dgozman
Thank you for review. https://codereview.chromium.org/308003007/diff/20001/LayoutTests/inspector/device-emulation/device-emulation-mq-on-resize.html File LayoutTests/inspector/device-emulation/device-emulation-mq-on-resize.html (right): https://codereview.chromium.org/308003007/diff/20001/LayoutTests/inspector/device-emulation/device-emulation-mq-on-resize.html#newcode137 LayoutTests/inspector/device-emulation/device-emulation-mq-on-resize.html:137: Tests that device width is ...
6 years, 6 months ago (2014-06-10 10:26:03 UTC) #14
ojan
lgtm https://codereview.chromium.org/308003007/diff/40001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/308003007/diff/40001/Source/web/WebViewImpl.cpp#newcode1627 Source/web/WebViewImpl.cpp:1627: // (see MediaQueryExp::isViewportDependent), and will not be invalidated ...
6 years, 6 months ago (2014-06-10 17:22:38 UTC) #15
dgozman
I'm going to commit this without test. Filed a bug to create async test for ...
6 years, 6 months ago (2014-06-18 13:15:43 UTC) #16
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 6 months ago (2014-06-18 13:16:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/308003007/60001
6 years, 6 months ago (2014-06-18 13:17:14 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 14:21:56 UTC) #19
Message was sent while issue was closed.
Change committed as 176420

Powered by Google App Engine
This is Rietveld 408576698