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

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

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 years, 11 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 26 matching lines...) Expand all
37 DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLTableColElement); 37 DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLTableColElement);
38 38
39 unsigned span() const { return m_span; } 39 unsigned span() const { return m_span; }
40 void setSpan(unsigned); 40 void setSpan(unsigned);
41 41
42 const AtomicString& width() const; 42 const AtomicString& width() const;
43 43
44 private: 44 private:
45 HTMLTableColElement(const QualifiedName& tagName, Document&); 45 HTMLTableColElement(const QualifiedName& tagName, Document&);
46 46
47 void parseAttribute(const QualifiedName&, 47 void parseAttribute(const AttributeModificationParams&) override;
48 const AtomicString&,
49 const AtomicString&) override;
50 bool isPresentationAttribute(const QualifiedName&) const override; 48 bool isPresentationAttribute(const QualifiedName&) const override;
51 void collectStyleForPresentationAttribute(const QualifiedName&, 49 void collectStyleForPresentationAttribute(const QualifiedName&,
52 const AtomicString&, 50 const AtomicString&,
53 MutableStylePropertySet*) override; 51 MutableStylePropertySet*) override;
54 const StylePropertySet* additionalPresentationAttributeStyle() override; 52 const StylePropertySet* additionalPresentationAttributeStyle() override;
55 53
56 unsigned m_span; 54 unsigned m_span;
57 }; 55 };
58 56
59 inline bool isHTMLTableColElement(const HTMLElement& element) { 57 inline bool isHTMLTableColElement(const HTMLElement& element) {
60 return element.hasTagName(HTMLNames::colTag) || 58 return element.hasTagName(HTMLNames::colTag) ||
61 element.hasTagName(HTMLNames::colgroupTag); 59 element.hasTagName(HTMLNames::colgroupTag);
62 } 60 }
63 61
64 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableColElement); 62 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableColElement);
65 63
66 } // namespace blink 64 } // namespace blink
67 65
68 #endif // HTMLTableColElement_h 66 #endif // HTMLTableColElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698