| Index: Source/core/rendering/RenderTreeAsText.cpp
|
| diff --git a/Source/core/rendering/RenderTreeAsText.cpp b/Source/core/rendering/RenderTreeAsText.cpp
|
| index 532144e960732759d3eb7209c74fd8e042ad0338..f0dad98a953570da6cbe8086d4a0a4925408d833 100644
|
| --- a/Source/core/rendering/RenderTreeAsText.cpp
|
| +++ b/Source/core/rendering/RenderTreeAsText.cpp
|
| @@ -114,17 +114,17 @@ static String getTagName(Node* n)
|
|
|
| static bool isEmptyOrUnstyledAppleStyleSpan(const Node* node)
|
| {
|
| - if (!node || !node->isHTMLElement() || !node->hasTagName(spanTag))
|
| + if (!isHTMLSpanElement(node))
|
| return false;
|
|
|
| - const HTMLElement* elem = toHTMLElement(node);
|
| - if (elem->getAttribute(classAttr) != "Apple-style-span")
|
| + const HTMLElement& elem = toHTMLElement(*node);
|
| + if (elem.getAttribute(classAttr) != "Apple-style-span")
|
| return false;
|
|
|
| - if (!node->hasChildren())
|
| + if (!elem.hasChildren())
|
| return true;
|
|
|
| - const StylePropertySet* inlineStyleDecl = elem->inlineStyle();
|
| + const StylePropertySet* inlineStyleDecl = elem.inlineStyle();
|
| return (!inlineStyleDecl || inlineStyleDecl->isEmpty());
|
| }
|
|
|
|
|