DescriptionAdditional refactor necessary to fix the misaligned tab background images. (https://codereview.chromium.org/18486007/)
- Make [FramedBrowserWindow drawWindowThemeInDirtyRect:] use themeImagePositionForAlignment:
- Rename themePatternPhaseForAlignment: to themeImagePositionForAlignment:. This allows themeImagePositionForAlignment: to be used for positioning IDR_THEME_FRAME_OVERLAY. The renaming makes it clear that there is a single correct return value for themeImagePositionForAlignment:. Phase on the other hand is periodic.
(This refactoring happens to make IDR_THEME_FRAME_OVERLAY properly line up with IDR_THEME_FRAME. See http://www.corp.google.com/~pkotwicz/theme_testing/theme_overlay.crx)
- Swap setPatternPhase with cr_setPatternPhase. That makes the theme images line up consistently with or without --use-core-animation in presentation mode
- Split [BrowserWindowUtils themeImagePositionFor:] into [BrowserWindowUtils themeImagePositionFor:] and [BrowserWindowUtils themeImagePositionInTabStripCoords:]. This will allow the new tab button to use [BrowserWindowUtils themeImagePositionInTabStripCoords:] in https://codereview.chromium.org/18486007/
BUG=176857
TEST=None
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217608
Patch Set 1 : #
Total comments: 6
Patch Set 2 : Nits as per rsesek@ #Patch Set 3 : A few comment changes #Patch Set 4 : Rebased #Messages
Total messages: 14 (0 generated)
|