| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2  * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 
| 3  *           (C) 1997 Torben Weis (weis@kde.org) | 3  *           (C) 1997 Torben Weis (weis@kde.org) | 
| 4  *           (C) 1998 Waldo Bastian (bastian@kde.org) | 4  *           (C) 1998 Waldo Bastian (bastian@kde.org) | 
| 5  *           (C) 1999 Lars Knoll (knoll@kde.org) | 5  *           (C) 1999 Lars Knoll (knoll@kde.org) | 
| 6  *           (C) 1999 Antti Koivisto (koivisto@kde.org) | 6  *           (C) 1999 Antti Koivisto (koivisto@kde.org) | 
| 7  * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 Apple Inc. All rights 
     reserved. | 7  * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 Apple Inc. All rights 
     reserved. | 
| 8  * | 8  * | 
| 9  * This library is free software; you can redistribute it and/or | 9  * This library is free software; you can redistribute it and/or | 
| 10  * modify it under the terms of the GNU Library General Public | 10  * modify it under the terms of the GNU Library General Public | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
| 33 #include "core/css/CSSImageValue.h" | 33 #include "core/css/CSSImageValue.h" | 
| 34 #include "core/css/CSSValuePool.h" | 34 #include "core/css/CSSValuePool.h" | 
| 35 #include "core/css/StylePropertySet.h" | 35 #include "core/css/StylePropertySet.h" | 
| 36 #include "core/dom/Attribute.h" | 36 #include "core/dom/Attribute.h" | 
| 37 #include "core/dom/ElementTraversal.h" | 37 #include "core/dom/ElementTraversal.h" | 
| 38 #include "core/dom/ExceptionCode.h" | 38 #include "core/dom/ExceptionCode.h" | 
| 39 #include "core/frame/UseCounter.h" | 39 #include "core/frame/UseCounter.h" | 
| 40 #include "core/html/HTMLTableCaptionElement.h" | 40 #include "core/html/HTMLTableCaptionElement.h" | 
| 41 #include "core/html/HTMLTableCellElement.h" | 41 #include "core/html/HTMLTableCellElement.h" | 
| 42 #include "core/html/HTMLTableRowElement.h" | 42 #include "core/html/HTMLTableRowElement.h" | 
| 43 #include "core/html/HTMLTableRowsCollection.h" |  | 
| 44 #include "core/html/HTMLTableSectionElement.h" | 43 #include "core/html/HTMLTableSectionElement.h" | 
| 45 #include "core/html/parser/HTMLParserIdioms.h" | 44 #include "core/html/parser/HTMLParserIdioms.h" | 
| 46 #include "core/rendering/RenderTable.h" | 45 #include "core/rendering/RenderTable.h" | 
| 47 #include "platform/weborigin/Referrer.h" | 46 #include "platform/weborigin/Referrer.h" | 
| 48 #include "wtf/StdLibExtras.h" | 47 #include "wtf/StdLibExtras.h" | 
| 49 | 48 | 
| 50 namespace WebCore { | 49 namespace WebCore { | 
| 51 | 50 | 
| 52 using namespace HTMLNames; | 51 using namespace HTMLNames; | 
| 53 | 52 | 
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 549 bool HTMLTableElement::hasLegalLinkAttribute(const QualifiedName& name) const | 548 bool HTMLTableElement::hasLegalLinkAttribute(const QualifiedName& name) const | 
| 550 { | 549 { | 
| 551     return name == backgroundAttr || HTMLElement::hasLegalLinkAttribute(name); | 550     return name == backgroundAttr || HTMLElement::hasLegalLinkAttribute(name); | 
| 552 } | 551 } | 
| 553 | 552 | 
| 554 const QualifiedName& HTMLTableElement::subResourceAttributeName() const | 553 const QualifiedName& HTMLTableElement::subResourceAttributeName() const | 
| 555 { | 554 { | 
| 556     return backgroundAttr; | 555     return backgroundAttr; | 
| 557 } | 556 } | 
| 558 | 557 | 
| 559 PassRefPtrWillBeRawPtr<HTMLCollection> HTMLTableElement::rows() | 558 PassRefPtrWillBeRawPtr<HTMLTableRowsCollection> HTMLTableElement::rows() | 
| 560 { | 559 { | 
| 561     return ensureCachedHTMLCollection(TableRows); | 560     return toHTMLTableRowsCollection(ensureCachedHTMLCollection(TableRows).get()
     ); | 
| 562 } | 561 } | 
| 563 | 562 | 
| 564 PassRefPtrWillBeRawPtr<HTMLCollection> HTMLTableElement::tBodies() | 563 PassRefPtrWillBeRawPtr<HTMLCollection> HTMLTableElement::tBodies() | 
| 565 { | 564 { | 
| 566     return ensureCachedHTMLCollection(TableTBodies); | 565     return ensureCachedHTMLCollection(TableTBodies); | 
| 567 } | 566 } | 
| 568 | 567 | 
| 569 const AtomicString& HTMLTableElement::rules() const | 568 const AtomicString& HTMLTableElement::rules() const | 
| 570 { | 569 { | 
| 571     return getAttribute(rulesAttr); | 570     return getAttribute(rulesAttr); | 
| 572 } | 571 } | 
| 573 | 572 | 
| 574 const AtomicString& HTMLTableElement::summary() const | 573 const AtomicString& HTMLTableElement::summary() const | 
| 575 { | 574 { | 
| 576     return getAttribute(summaryAttr); | 575     return getAttribute(summaryAttr); | 
| 577 } | 576 } | 
| 578 | 577 | 
| 579 void HTMLTableElement::trace(Visitor* visitor) | 578 void HTMLTableElement::trace(Visitor* visitor) | 
| 580 { | 579 { | 
| 581     visitor->trace(m_sharedCellStyle); | 580     visitor->trace(m_sharedCellStyle); | 
| 582     HTMLElement::trace(visitor); | 581     HTMLElement::trace(visitor); | 
| 583 } | 582 } | 
| 584 | 583 | 
| 585 } | 584 } | 
| OLD | NEW | 
|---|