Index: Source/core/editing/Position.cpp |
diff --git a/Source/core/editing/Position.cpp b/Source/core/editing/Position.cpp |
index 8867439f73ea045d302dd24d7505f2afa5d21f2b..09e619f518de486c27d5358342186faf25c1d0f9 100644 |
--- a/Source/core/editing/Position.cpp |
+++ b/Source/core/editing/Position.cpp |
@@ -807,8 +807,9 @@ static int boundingBoxLogicalHeight(LayoutObject *o, const IntRect &rect) |
return o->style()->isHorizontalWritingMode() ? rect.height() : rect.width(); |
} |
-template <typename Strategy> |
-bool PositionAlgorithm<Strategy>::hasRenderedNonAnonymousDescendantsWithHeight(LayoutObject* layoutObject) |
+// TODO(yosin) We should move |hasRenderedNonAnonymousDescendantsWithHeight| |
+// to "VisibleUnits.cpp" to reduce |LayoutObject| dependency in "Position.cpp" |
+bool hasRenderedNonAnonymousDescendantsWithHeight(LayoutObject* layoutObject) |
{ |
LayoutObject* stop = layoutObject->nextInPreOrderAfterChildren(); |
for (LayoutObject *o = layoutObject->slowFirstChild(); o && o != stop; o = o->nextInPreOrder()) { |