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

Issue 2695723002: Reorder setting of zooming, to prevent reflowing and size mismatch. (Closed)

Created:
3 years, 10 months ago by Karl Øygard
Modified:
3 years, 10 months ago
Reviewers:
tkent
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reorder setting of zooming, to prevent reflowing and size mismatch. When zooming is applied to the document, the color suggestion picker can lose or gain bottom pixels, which causes missing borders or rendering artifacts. This appears to be caused by some unfortunate assumptions and interactions in Source/web/resources/colorSuggestionPicker.js and friends. The color picker is a separate window, and the contents of the window is generated in ColorChooserPopupUIController.cpp. colorSuggestionPicker.js resizes the window to exactly fit the content, but the zoom factor is applied afterwards, causing an additional reflow (see WebPagePopupImpl.cpp:329). There is no guarantee that the zoomed contents will fit the window any more, and much of the time it doesn't. By setting zoom factor before forcing layout, the final size is reached the first time around, and the window size should be correct. BUG=691375 Review-Url: https://codereview.chromium.org/2695723002 Cr-Commit-Position: refs/heads/master@{#450513} Committed: https://chromium.googlesource.com/chromium/src/+/1b3b57df0600ecc1efa08e17d12110c04accba71

Patch Set 1 #

Patch Set 2 : Rebaselined test cases. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M third_party/WebKit/LayoutTests/platform/linux/fast/forms/color/color-suggestion-picker-appearance-zoom125-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/virtual/scalefactor150/fast/hidpi/static/data-suggestion-picker-appearance-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/color/color-suggestion-picker-appearance-zoom125-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/color/color-suggestion-picker-appearance-zoom200-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/color/color-suggestion-picker-appearance-zoom125-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/color/color-suggestion-picker-appearance-zoom200-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/color/color-suggestion-picker-appearance-zoom125-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/color/color-suggestion-picker-appearance-zoom200-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/forms/color/color-suggestion-picker-appearance-zoom125-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (14 generated)
Karl Øygard
ptal
3 years, 10 months ago (2017-02-14 20:43:20 UTC) #12
tkent
lgtm. Thanks!
3 years, 10 months ago (2017-02-14 22:52:30 UTC) #13
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/2695723002/20001
3 years, 10 months ago (2017-02-14 22:53:20 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 23:31:34 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1b3b57df0600ecc1efa08e17d121...

Powered by Google App Engine
This is Rietveld 408576698