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

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

Issue 2502803002: Restrict scope attribute on table cells (Closed)
Patch Set: Patch for landing Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 colSpan() const; 42 unsigned colSpan() const;
43 unsigned rowSpan() const; 43 unsigned rowSpan() const;
44 44
45 void setCellIndex(int); 45 void setCellIndex(int);
46 46
47 const AtomicString& abbr() const; 47 const AtomicString& abbr() const;
48 const AtomicString& axis() const; 48 const AtomicString& axis() const;
49 void setColSpan(unsigned); 49 void setColSpan(unsigned);
50 const AtomicString& headers() const; 50 const AtomicString& headers() const;
51 void setRowSpan(unsigned); 51 void setRowSpan(unsigned);
52 const AtomicString& scope() const;
53 void setScope(const AtomicString&);
54 52
55 private: 53 private:
56 HTMLTableCellElement(const QualifiedName&, Document&); 54 HTMLTableCellElement(const QualifiedName&, Document&);
57 55
58 void parseAttribute(const QualifiedName&, 56 void parseAttribute(const QualifiedName&,
59 const AtomicString&, 57 const AtomicString&,
60 const AtomicString&) override; 58 const AtomicString&) override;
61 bool isPresentationAttribute(const QualifiedName&) const override; 59 bool isPresentationAttribute(const QualifiedName&) const override;
62 void collectStyleForPresentationAttribute(const QualifiedName&, 60 void collectStyleForPresentationAttribute(const QualifiedName&,
63 const AtomicString&, 61 const AtomicString&,
64 MutableStylePropertySet*) override; 62 MutableStylePropertySet*) override;
65 const StylePropertySet* additionalPresentationAttributeStyle() override; 63 const StylePropertySet* additionalPresentationAttributeStyle() override;
66 64
67 bool isURLAttribute(const Attribute&) const override; 65 bool isURLAttribute(const Attribute&) const override;
68 bool hasLegalLinkAttribute(const QualifiedName&) const override; 66 bool hasLegalLinkAttribute(const QualifiedName&) const override;
69 const QualifiedName& subResourceAttributeName() const override; 67 const QualifiedName& subResourceAttributeName() const override;
70 }; 68 };
71 69
72 inline bool isHTMLTableCellElement(const HTMLElement& element) { 70 inline bool isHTMLTableCellElement(const HTMLElement& element) {
73 return element.hasTagName(HTMLNames::tdTag) || 71 return element.hasTagName(HTMLNames::tdTag) ||
74 element.hasTagName(HTMLNames::thTag); 72 element.hasTagName(HTMLNames::thTag);
75 } 73 }
76 74
77 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableCellElement); 75 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableCellElement);
78 76
79 } // namespace blink 77 } // namespace blink
80 78
81 #endif // HTMLTableCellElement_h 79 #endif // HTMLTableCellElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLTableCellElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698