Chromium Code Reviews
DescriptionUnify background color gutters.
There were 3 different mechanisms used for showing background color
around incorrectly sized content on the Android browser process:
A) setting CC root background color from StaticTabSceneLayer,
B) padding SolidColorLayers in tab_layer.cc for the phone tab switcher
C) a full-sized SolidColorLayer in DelegatedFrameHostAndroid.
In http://crrev.com/2566753004 I disrupted this and introduced some
over- and under-padding bugs (and I noticed a preexisting one). This
patch fixes them by:
- Eliminating mechanism C, which is particularly redundant and
inefficient.
- Introducing a new method ContentLayer::ComputeSize() which is a way of
communicating with the TabLayer padding system that's more explicit than
the layer bounds setting that existed in the past. It pulls in the
surface size information that mechanism C covered.
- Delegating the background color getter on the tablet
TabStripSceneLayer. Mechanism B only had the correct color on phone,
not tablet, because the StaticTabSceneLayer is hidden one level deep.
Also do a bit of further cleanup of ContentLayer.
BUG=692490
Review-Url: https://codereview.chromium.org/2707403004
Cr-Commit-Position: refs/heads/master@{#453316}
Committed: https://chromium.googlesource.com/chromium/src/+/f0c242bac6c0a6cf422b637b6224da3d8ac5eb4c
Patch Set 1 #Patch Set 2 : Remove debug logging #
Total comments: 2
Patch Set 3 : Rename to GetDrawsContentLeaf #Patch Set 4 : Rebase #Messages
Total messages: 19 (13 generated)
|