DescriptionClarify the size of a document view (a.k.a layout size) that causes FrameView to emit the resize event.
The spec DOM Level 2 Events states that the resize event occurs when a document
view is resized. Refer to http://www.w3.org/TR/DOM-Level-2-Events/events.html
After WebKit r141053, ScrollView::unscaledVisibleContentSize stands for a layout size.
When turning on fixed layout, fixed layout size stands for a layout size. There
is already ScrollView::layoutSize() method matching above explanation.
However, this issue introduced viewportSize() to include scrollbars. We don't
want that showing/hiding scrollbars is considered a layout size change. Refer to
webkit.org/b/80242
BUG=235833
TEST=fast/events/resize-events.html, fast/events/resize-events-count.html, fast/events/resize-events-fixed-layout.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153167
Patch Set 1 #Patch Set 2 : Add new test: fast/events/resize-events-count.html #
Total comments: 5
Patch Set 3 : WIP: waiting for landing crbug.com/15023009 #Patch Set 4 : patch for review #
Total comments: 2
Patch Set 5 : Apply aellas's review #
Total comments: 5
Patch Set 6 : Fix comment nits #Patch Set 7 : use js-test-pre.js #
Messages
Total messages: 21 (0 generated)
|