Chromium Code Reviews
DescriptionRefactor InlineBox::calculateBoundaries()
Previously calculateBoundaries() were used for two different purposes:
- For InlineTextBox, this is to retrieve the frame rect (LayoutRect(x(),
y(), width(), height()) which is a result of layout.
- For SVGInlineFlowBox and SVGInlineTextBox this is a task during layout
to calculate the boundaries based on the positions of text fragments.
Remove InlineBox::calculateBoundaries() because we don't need it in
this abstraction level.
Rename InlineTextBox::calculateBoundaries() to frameRect().
Keep SVGInlineTextBox::calculateBoundaries() which is no longer virtual.
BUG=666416
Committed: https://crrev.com/5d66facc4263f517ee3cd4d733120bc9e5380cd1
Cr-Commit-Position: refs/heads/master@{#434907}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebase #Messages
Total messages: 17 (11 generated)
|