DescriptionNormalize top controls offset to (0, 1), Blink-side.
Since top controls height can now be changed, storing top controls
offset as an absolute value causes problems. Normalizing its stored
format to (0, 1) means we we don't need to adjust it when the height
changes.
On the Blink side, Blink now needs to hear about the top controls
height, not just the "layout height" (effect on WebViewImpl size, which
can be 0), so that it can apply the absolute value to FrameView.
The new boolean m_topControlsOffsetIsNormalized is just a temporary hack
to allow this patch to be a no-op until the Chromium-side lands. I'll
delete it in the same patch as WebWidget::setTopControlsLayoutHeight().
See also Chromium-side patch: https://codereview.chromium.org/901813002
BUG=430635
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189737
Patch Set 1 #
Total comments: 2
Patch Set 2 : Apply bokan@ code review feedback #Patch Set 3 : Switch unit tests to normalized format #
Total comments: 2
Patch Set 4 : Rename to shownratio #
Messages
Total messages: 16 (5 generated)
|