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

Issue 2613733003: Need to clear viewport dependent units switching print mode. (Closed)

Created:
3 years, 11 months ago by rune
Modified:
3 years, 11 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, kinuko+watch, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Need to clear viewport dependent units when switching print mode. Switching between print and screen changes the size of the initial containing block. Viewport dependent lengths need to be recalculated and the cache for matched properties cleared. Normally, notifyResizeForViewportUnits() is called from performPreLayoutTasks when the initial containing block size changes. That does not happen when laying out for printing and going back to screen layout. We skip setting m_lastLayoutSize in sendResizeEventIfNeeded. We probably do that to avoid triggering resize events going back and forth between the print (preview) size. Make sure we clear the matched properties cache from StyleResolver when updating the media type. R=mstensho@opera.com BUG=677799 Review-Url: https://codereview.chromium.org/2613733003 Cr-Commit-Position: refs/heads/master@{#441642} Committed: https://chromium.googlesource.com/chromium/src/+/010fc15a8b14c1d9b7a651096cdad195c2532346

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 2 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
rune
ptal jochen for web/
3 years, 11 months ago (2017-01-05 10:56:04 UTC) #4
mstensho (USE GERRIT)
lgtm, but shouldn't the title rather be "Need to clear viewport dependent units WHEN switching ...
3 years, 11 months ago (2017-01-05 12:04:32 UTC) #5
rune
On 2017/01/05 12:04:32, mstensho wrote: > lgtm, but shouldn't the title rather be "Need to ...
3 years, 11 months ago (2017-01-05 12:09:26 UTC) #7
mstensho (USE GERRIT)
Also non-owner lgtm for web/
3 years, 11 months ago (2017-01-05 12:11:08 UTC) #8
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-05 12:27:36 UTC) #11
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/2613733003/1
3 years, 11 months ago (2017-01-05 12:31:13 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 12:55:04 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/010fc15a8b14c1d9b7a651096cda...

Powered by Google App Engine
This is Rietveld 408576698