DescriptionFix SVG vertical text layout issues
We layout SVG text fragments in physical coordinates of SVG <text>.
SVG text layout objects inherite from HTML text layout objects.
Previously we saved the physical coordinates in the HTML layout
objects as logical coordinates, and tried to override the HTML code
with SVG specific code to interprete the logical coordinates as
physical coordinates in painting and hittesting, etc. However, there
are still HTML code use the coordinates as logical and break some
cases.
Now convert the physical coordinates into appropriate coordinates
required by the HTML layout objects before saving them. Also let SVG
painting and hittesting code interprete the coordinates in the same
way as HTML code does.
Optimized SVGRootInlineBox::layoutChildBoxes() to reduce the complexity
from O(2^logN) to O(N) (where N = number of line box nodes).
SVGInlineFlowBox::calcuateBoundaries() will be removed in a later CL.
Fix bug that the indirect descendants of the root box were not
adjusted to the block coordinates.
BUG=666416
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/6ef01616c17c1ffb3a6c5d1430b3641c2c25c6cb
Cr-Commit-Position: refs/heads/master@{#434270}
Patch Set 1 #Patch Set 2 : - #
Total comments: 2
Patch Set 3 : - #Messages
Total messages: 20 (12 generated)
|