| Index: Source/core/layout/LayoutObject.h
|
| diff --git a/Source/core/layout/LayoutObject.h b/Source/core/layout/LayoutObject.h
|
| index 1f5e248007293af160a3578f1a3882552a0a4ab1..3f5a0fb596db248a407736c20d5f80489cd2f549 100644
|
| --- a/Source/core/layout/LayoutObject.h
|
| +++ b/Source/core/layout/LayoutObject.h
|
| @@ -1251,7 +1251,7 @@ private:
|
| void checkBlockPositionedObjectsNeedLayout();
|
| #endif
|
|
|
| - bool isTextOrSVGChild() const { return isText() || (isSVG() && !isSVGRoot()); }
|
| + bool isSVGChild() const { return isSVG() && !isSVGRoot(); }
|
|
|
| static bool isAllowedToModifyLayoutTreeStructure(Document&);
|
|
|
| @@ -1474,22 +1474,12 @@ inline bool LayoutObject::documentBeingDestroyed() const
|
|
|
| inline bool LayoutObject::isBeforeContent() const
|
| {
|
| - if (style()->styleType() != BEFORE)
|
| - return false;
|
| - // Text nodes don't have their own styles, so ignore the style on a text node.
|
| - if (isText() && !isBR())
|
| - return false;
|
| - return true;
|
| + return style()->styleType() == BEFORE;
|
| }
|
|
|
| inline bool LayoutObject::isAfterContent() const
|
| {
|
| - if (style()->styleType() != AFTER)
|
| - return false;
|
| - // Text nodes don't have their own styles, so ignore the style on a text node.
|
| - if (isText() && !isBR())
|
| - return false;
|
| - return true;
|
| + return style()->styleType() == AFTER;
|
| }
|
|
|
| inline bool LayoutObject::isBeforeOrAfterContent() const
|
|
|