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

Side by Side Diff: Source/core/html/HTMLTableElement.h

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 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 | Annotate | Revision Log
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, 2008 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008 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 21 matching lines...) Expand all
32 32
33 class ExceptionState; 33 class ExceptionState;
34 class HTMLCollection; 34 class HTMLCollection;
35 class HTMLTableCaptionElement; 35 class HTMLTableCaptionElement;
36 class HTMLTableRowsCollection; 36 class HTMLTableRowsCollection;
37 class HTMLTableSectionElement; 37 class HTMLTableSectionElement;
38 38
39 class HTMLTableElement FINAL : public HTMLElement { 39 class HTMLTableElement FINAL : public HTMLElement {
40 public: 40 public:
41 static PassRefPtr<HTMLTableElement> create(Document&); 41 static PassRefPtr<HTMLTableElement> create(Document&);
42 static PassRefPtr<HTMLTableElement> create(const QualifiedName&, Document&);
43 42
44 HTMLTableCaptionElement* caption() const; 43 HTMLTableCaptionElement* caption() const;
45 void setCaption(PassRefPtr<HTMLTableCaptionElement>, ExceptionState&); 44 void setCaption(PassRefPtr<HTMLTableCaptionElement>, ExceptionState&);
46 45
47 HTMLTableSectionElement* tHead() const; 46 HTMLTableSectionElement* tHead() const;
48 void setTHead(PassRefPtr<HTMLTableSectionElement>, ExceptionState&); 47 void setTHead(PassRefPtr<HTMLTableSectionElement>, ExceptionState&);
49 48
50 HTMLTableSectionElement* tFoot() const; 49 HTMLTableSectionElement* tFoot() const;
51 void setTFoot(PassRefPtr<HTMLTableSectionElement>, ExceptionState&); 50 void setTFoot(PassRefPtr<HTMLTableSectionElement>, ExceptionState&);
52 51
(...skipping 10 matching lines...) Expand all
63 PassRefPtr<HTMLCollection> rows(); 62 PassRefPtr<HTMLCollection> rows();
64 PassRefPtr<HTMLCollection> tBodies(); 63 PassRefPtr<HTMLCollection> tBodies();
65 64
66 String rules() const; 65 String rules() const;
67 String summary() const; 66 String summary() const;
68 67
69 const StylePropertySet* additionalCellStyle(); 68 const StylePropertySet* additionalCellStyle();
70 const StylePropertySet* additionalGroupStyle(bool rows); 69 const StylePropertySet* additionalGroupStyle(bool rows);
71 70
72 private: 71 private:
73 HTMLTableElement(const QualifiedName&, Document&); 72 explicit HTMLTableElement(Document&);
74 73
75 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 74 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
76 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 75 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
77 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 76 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
78 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 77 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
79 78
80 // Used to obtain either a solid or outset border decl and to deal with the frame and rules attributes. 79 // Used to obtain either a solid or outset border decl and to deal with the frame and rules attributes.
81 virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERR IDE; 80 virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERR IDE;
82 81
83 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; 82 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
(...skipping 25 matching lines...) Expand all
109 inline bool isHTMLTableElement(const Element* element) 108 inline bool isHTMLTableElement(const Element* element)
110 { 109 {
111 return element->hasTagName(HTMLNames::tableTag); 110 return element->hasTagName(HTMLNames::tableTag);
112 } 111 }
113 112
114 DEFINE_NODE_TYPE_CASTS(HTMLTableElement, hasTagName(HTMLNames::tableTag)); 113 DEFINE_NODE_TYPE_CASTS(HTMLTableElement, hasTagName(HTMLNames::tableTag));
115 114
116 } //namespace 115 } //namespace
117 116
118 #endif 117 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698