Description[Layout API] Use layoutViewItem() in Document
Document::layoutView() is deprecated and being removed soon. The
replacement is Document::layoutViewItem(), which routes methods
through the new block layout API. (See linked crbug for details.)
Several new API methods were added which simply proxy to the
underlying layout object.
As this is a fairly critical class and may show up in automatic
blame lists in the future, I should point out that the layout API
has absolutely no performance penalty. These proxy objects (LayoutItem
and friends) are not ever created at runtime; they disappear completely
during compilation/linking. The underlying code produced is identical
to what was being produced before this CL.
There are no functional changes.
BUG=499321
Committed: https://crrev.com/9639f3cbd3fccd1aeee5c320f56cdfdf023ee99f
Cr-Commit-Position: refs/heads/master@{#404733}
Patch Set 1 #
Messages
Total messages: 15 (6 generated)
|