| Index: Source/core/html/HTMLTableElement.cpp
|
| diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp
|
| index 6382133c6dc00dba5e8debeed5ab668d8027fad3..7c30e4dfee1ee2f11719a4745cfb765f940eee52 100644
|
| --- a/Source/core/html/HTMLTableElement.cpp
|
| +++ b/Source/core/html/HTMLTableElement.cpp
|
| @@ -66,11 +66,7 @@ PassRefPtr<HTMLTableElement> HTMLTableElement::create(Document& document)
|
|
|
| HTMLTableCaptionElement* HTMLTableElement::caption() const
|
| {
|
| - for (Element* child = ElementTraversal::firstWithin(*this); child; child = ElementTraversal::nextSibling(*child)) {
|
| - if (child->hasTagName(captionTag))
|
| - return toHTMLTableCaptionElement(child);
|
| - }
|
| - return 0;
|
| + return Traversal<HTMLTableCaptionElement>::firstChild(*this);
|
| }
|
|
|
| void HTMLTableElement::setCaption(PassRefPtr<HTMLTableCaptionElement> newCaption, ExceptionState& exceptionState)
|
|
|