Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLTableCellElement.h

Issue 2376593003: Limit scope getter to predefined values (Closed)
Patch Set: Patch for landing Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 unsigned rowSpan() const; 42 unsigned rowSpan() const;
43 43
44 void setCellIndex(int); 44 void setCellIndex(int);
45 45
46 const AtomicString& abbr() const; 46 const AtomicString& abbr() const;
47 const AtomicString& axis() const; 47 const AtomicString& axis() const;
48 void setColSpan(unsigned); 48 void setColSpan(unsigned);
49 const AtomicString& headers() const; 49 const AtomicString& headers() const;
50 void setRowSpan(unsigned); 50 void setRowSpan(unsigned);
51 const AtomicString& scope() const; 51 const AtomicString& scope() const;
52 void setScope(const AtomicString&);
52 53
53 private: 54 private:
54 HTMLTableCellElement(const QualifiedName&, Document&); 55 HTMLTableCellElement(const QualifiedName&, Document&);
55 56
56 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; 57 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override;
57 bool isPresentationAttribute(const QualifiedName&) const override; 58 bool isPresentationAttribute(const QualifiedName&) const override;
58 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override; 59 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override;
59 const StylePropertySet* additionalPresentationAttributeStyle() override; 60 const StylePropertySet* additionalPresentationAttributeStyle() override;
60 61
61 bool isURLAttribute(const Attribute&) const override; 62 bool isURLAttribute(const Attribute&) const override;
62 bool hasLegalLinkAttribute(const QualifiedName&) const override; 63 bool hasLegalLinkAttribute(const QualifiedName&) const override;
63 const QualifiedName& subResourceAttributeName() const override; 64 const QualifiedName& subResourceAttributeName() const override;
64 }; 65 };
65 66
66 inline bool isHTMLTableCellElement(const HTMLElement& element) 67 inline bool isHTMLTableCellElement(const HTMLElement& element)
67 { 68 {
68 return element.hasTagName(HTMLNames::tdTag) || element.hasTagName(HTMLNames: :thTag); 69 return element.hasTagName(HTMLNames::tdTag) || element.hasTagName(HTMLNames: :thTag);
69 } 70 }
70 71
71 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableCellElement); 72 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableCellElement);
72 73
73 } // namespace blink 74 } // namespace blink
74 75
75 #endif // HTMLTableCellElement_h 76 #endif // HTMLTableCellElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698