DescriptionNeed 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 #
Messages
Total messages: 16 (9 generated)
|