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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLTableColElement.cpp ('k') | Source/core/html/HTMLTableElement.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, 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 20 matching lines...) Expand all
31 namespace WebCore { 31 namespace WebCore {
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*); 42 static PassRefPtr<HTMLTableElement> create(const QualifiedName&, Document&);
43 43
44 HTMLTableCaptionElement* caption() const; 44 HTMLTableCaptionElement* caption() const;
45 void setCaption(PassRefPtr<HTMLTableCaptionElement>, ExceptionState&); 45 void setCaption(PassRefPtr<HTMLTableCaptionElement>, ExceptionState&);
46 46
47 HTMLTableSectionElement* tHead() const; 47 HTMLTableSectionElement* tHead() const;
48 void setTHead(PassRefPtr<HTMLTableSectionElement>, ExceptionState&); 48 void setTHead(PassRefPtr<HTMLTableSectionElement>, ExceptionState&);
49 49
50 HTMLTableSectionElement* tFoot() const; 50 HTMLTableSectionElement* tFoot() const;
51 void setTFoot(PassRefPtr<HTMLTableSectionElement>, ExceptionState&); 51 void setTFoot(PassRefPtr<HTMLTableSectionElement>, ExceptionState&);
52 52
(...skipping 10 matching lines...) Expand all
63 PassRefPtr<HTMLCollection> rows(); 63 PassRefPtr<HTMLCollection> rows();
64 PassRefPtr<HTMLCollection> tBodies(); 64 PassRefPtr<HTMLCollection> tBodies();
65 65
66 String rules() const; 66 String rules() const;
67 String summary() const; 67 String summary() const;
68 68
69 const StylePropertySet* additionalCellStyle(); 69 const StylePropertySet* additionalCellStyle();
70 const StylePropertySet* additionalGroupStyle(bool rows); 70 const StylePropertySet* additionalGroupStyle(bool rows);
71 71
72 private: 72 private:
73 HTMLTableElement(const QualifiedName&, Document*); 73 HTMLTableElement(const QualifiedName&, Document&);
74 74
75 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 75 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
76 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 76 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
77 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 77 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
78 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 78 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
79 79
80 // Used to obtain either a solid or outset border decl and to deal with the frame and rules attributes. 80 // 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; 81 virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERR IDE;
82 82
83 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; 83 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
(...skipping 29 matching lines...) Expand all
113 113
114 inline HTMLTableElement* toHTMLTableElement(Node* node) 114 inline HTMLTableElement* toHTMLTableElement(Node* node)
115 { 115 {
116 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTableElement(node)); 116 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTableElement(node));
117 return static_cast<HTMLTableElement*>(node); 117 return static_cast<HTMLTableElement*>(node);
118 } 118 }
119 119
120 } //namespace 120 } //namespace
121 121
122 #endif 122 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTableColElement.cpp ('k') | Source/core/html/HTMLTableElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698