| 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, 2010 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2010 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 23 matching lines...) Expand all Loading... |
| 34 public: | 34 public: |
| 35 static PassRefPtr<HTMLTableCaptionElement> create(const QualifiedName&, Docu
ment&); | 35 static PassRefPtr<HTMLTableCaptionElement> create(const QualifiedName&, Docu
ment&); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 HTMLTableCaptionElement(const QualifiedName&, Document&); | 38 HTMLTableCaptionElement(const QualifiedName&, Document&); |
| 39 | 39 |
| 40 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 40 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 41 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 41 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 inline HTMLTableCaptionElement* toHTMLTableCaptionElement(Node* node) | 44 DEFINE_NODE_TYPE_CASTS(HTMLTableCaptionElement, hasTagName(HTMLNames::captionTag
)); |
| 45 { | |
| 46 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::captio
nTag)); | |
| 47 return static_cast<HTMLTableCaptionElement*>(node); | |
| 48 } | |
| 49 | 45 |
| 50 } // namespace | 46 } // namespace |
| 51 | 47 |
| 52 #endif | 48 #endif |
| OLD | NEW |