| Index: sky/engine/core/dom/Position.cpp
|
| diff --git a/sky/engine/core/dom/Position.cpp b/sky/engine/core/dom/Position.cpp
|
| index 90fc3a25aa571b97b743107837e8eeedb86a38a2..1567b400b10ea715c36195f821a20fe1f69e6e80 100644
|
| --- a/sky/engine/core/dom/Position.cpp
|
| +++ b/sky/engine/core/dom/Position.cpp
|
| @@ -744,19 +744,14 @@ Position Position::downstream(EditingBoundaryCrossingRule rule) const
|
| return lastVisible;
|
| }
|
|
|
| -static int boundingBoxLogicalHeight(RenderObject *o, const IntRect &rect)
|
| -{
|
| - return o->style()->isHorizontalWritingMode() ? rect.height() : rect.width();
|
| -}
|
| -
|
| bool Position::hasRenderedNonAnonymousDescendantsWithHeight(RenderObject* renderer)
|
| {
|
| RenderObject* stop = renderer->nextInPreOrderAfterChildren();
|
| for (RenderObject *o = renderer->slowFirstChild(); o && o != stop; o = o->nextInPreOrder())
|
| if (o->nonPseudoNode()) {
|
| - if ((o->isText() && boundingBoxLogicalHeight(o, toRenderText(o)->linesBoundingBox()))
|
| + if ((o->isText() && toRenderText(o)->linesBoundingBox().height())
|
| || (o->isBox() && toRenderBox(o)->pixelSnappedLogicalHeight())
|
| - || (o->isRenderInline() && isEmptyInline(o) && boundingBoxLogicalHeight(o, toRenderInline(o)->linesBoundingBox())))
|
| + || (o->isRenderInline() && isEmptyInline(o) && toRenderInline(o)->linesBoundingBox().height()))
|
| return true;
|
| }
|
| return false;
|
|
|