| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // TODO(dgrogan): Change these to HTML's new specified behavior when | 57 // TODO(dgrogan): Change these to HTML's new specified behavior when |
| 58 // https://github.com/whatwg/html/issues/1198 is resolved. | 58 // https://github.com/whatwg/html/issues/1198 is resolved. |
| 59 // Public so that HTMLColElement can use maxColSpan. maxRowSpan is only used | 59 // Public so that HTMLColElement can use maxColSpan. maxRowSpan is only used |
| 60 // by this class but keeping them together seems desirable. | 60 // by this class but keeping them together seems desirable. |
| 61 static unsigned maxColSpan() { return 8190u; } | 61 static unsigned maxColSpan() { return 8190u; } |
| 62 static unsigned maxRowSpan() { return 65534u; } | 62 static unsigned maxRowSpan() { return 65534u; } |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 HTMLTableCellElement(const QualifiedName&, Document&); | 65 HTMLTableCellElement(const QualifiedName&, Document&); |
| 66 | 66 |
| 67 void parseAttribute(const QualifiedName&, | 67 void parseAttribute(const AttributeModificationParams&) override; |
| 68 const AtomicString&, | |
| 69 const AtomicString&) override; | |
| 70 bool isPresentationAttribute(const QualifiedName&) const override; | 68 bool isPresentationAttribute(const QualifiedName&) const override; |
| 71 void collectStyleForPresentationAttribute(const QualifiedName&, | 69 void collectStyleForPresentationAttribute(const QualifiedName&, |
| 72 const AtomicString&, | 70 const AtomicString&, |
| 73 MutableStylePropertySet*) override; | 71 MutableStylePropertySet*) override; |
| 74 const StylePropertySet* additionalPresentationAttributeStyle() override; | 72 const StylePropertySet* additionalPresentationAttributeStyle() override; |
| 75 | 73 |
| 76 bool isURLAttribute(const Attribute&) const override; | 74 bool isURLAttribute(const Attribute&) const override; |
| 77 bool hasLegalLinkAttribute(const QualifiedName&) const override; | 75 bool hasLegalLinkAttribute(const QualifiedName&) const override; |
| 78 const QualifiedName& subResourceAttributeName() const override; | 76 const QualifiedName& subResourceAttributeName() const override; |
| 79 }; | 77 }; |
| 80 | 78 |
| 81 inline bool isHTMLTableCellElement(const HTMLElement& element) { | 79 inline bool isHTMLTableCellElement(const HTMLElement& element) { |
| 82 return element.hasTagName(HTMLNames::tdTag) || | 80 return element.hasTagName(HTMLNames::tdTag) || |
| 83 element.hasTagName(HTMLNames::thTag); | 81 element.hasTagName(HTMLNames::thTag); |
| 84 } | 82 } |
| 85 | 83 |
| 86 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableCellElement); | 84 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableCellElement); |
| 87 | 85 |
| 88 } // namespace blink | 86 } // namespace blink |
| 89 | 87 |
| 90 #endif // HTMLTableCellElement_h | 88 #endif // HTMLTableCellElement_h |
| OLD | NEW |