Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1413)

Unified Diff: Source/core/layout/svg/line/SVGRootInlineBox.cpp

Issue 1183863003: Remove enclosingLayoutRect calls per FIXME. These are hot in profiles. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/svg/line/SVGRootInlineBox.cpp
diff --git a/Source/core/layout/svg/line/SVGRootInlineBox.cpp b/Source/core/layout/svg/line/SVGRootInlineBox.cpp
index 8271332077f98f4bedf6e3fc61fca8e256c76e8b..6088c6432d54edf48381a8492e992a17509b7349 100644
--- a/Source/core/layout/svg/line/SVGRootInlineBox.cpp
+++ b/Source/core/layout/svg/line/SVGRootInlineBox.cpp
@@ -107,9 +107,7 @@ void SVGRootInlineBox::layoutRootBox(const LayoutRect& childRect)
LayoutBlockFlow& parentBlock = block();
// Finally, assign the root block position, now that all content is laid out.
- // FIXME: the call to enclosingLayoutRect() below is temporary and should be removed once
- // the transition to LayoutUnit-based types is complete (crbug.com/321237)
- LayoutRect boundingRect = enclosingLayoutRect(childRect);
+ LayoutRect boundingRect = childRect;
parentBlock.setLocation(boundingRect.location());
parentBlock.setSize(boundingRect.size());
« Source/core/layout/line/InlineFlowBox.h ('K') | « Source/core/layout/line/InlineFlowBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698