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

Unified Diff: third_party/WebKit/Source/core/editing/VisibleUnits.cpp

Issue 1922223003: Change linesBoundingBox to return LayoutRect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/WebKit/Source/core/editing/VisibleUnits.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
index 5e86228f48fb302db78e693bf466c40359ae267e..9adde6003912b04d109af6a2501bc061312fb855 100644
--- a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
@@ -2159,7 +2159,7 @@ LayoutRect localCaretRectOfPosition(const PositionInFlatTreeWithAffinity& positi
return localCaretRectOfPositionTemplate<EditingInFlatTreeStrategy>(position, layoutObject);
}
-static int boundingBoxLogicalHeight(LayoutObject *o, const IntRect &rect)
+static LayoutUnit boundingBoxLogicalHeight(LayoutObject *o, const LayoutRect& rect)
{
return o->style()->isHorizontalWritingMode() ? rect.height() : rect.width();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698