DescriptionMake LayoutSVGViewportContainer's viewport updates an internal detail
determineIfLayoutSizeChanged was used by LayoutSVGContainer to let
a subclass, LayoutSVGViewportContainer, update its "layout size
changed" flag. This can be refactored by overriding layout (as
LayoutSVGRoot does) so other subclasses of LayoutSVGContainer are
not confused by this virtual.
With this refactoring it is possible to recalculate the viewport
only when needed (selfNeedsLayout), and move the viewport update
out of calculateLocalTransform.
No measurable perf difference, and no change in behavior.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/81824be93544dd0936c78b5a24a30c07a818a8ea
Cr-Commit-Position: refs/heads/master@{#439437}
Patch Set 1 #Patch Set 2 : Fix mistake in setting m_isLayoutSizeChanged #
Messages
Total messages: 25 (17 generated)
|