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

Side by Side Diff: Source/core/html/HTMLTableSectionElement.cpp

Issue 150103007: Use fastGetAttribute in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use fastGEtAttribute more for titleAttr Created 6 years, 10 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
« no previous file with comments | « Source/core/html/HTMLTableSectionElement.h ('k') | no next file » | 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 const Node *n = firstChild(); 99 const Node *n = firstChild();
100 while (n) { 100 while (n) {
101 if (n->hasTagName(trTag)) 101 if (n->hasTagName(trTag))
102 rows++; 102 rows++;
103 n = n->nextSibling(); 103 n = n->nextSibling();
104 } 104 }
105 105
106 return rows; 106 return rows;
107 } 107 }
108 108
109 const AtomicString& HTMLTableSectionElement::align() const
110 {
111 return getAttribute(alignAttr);
112 }
113
114 void HTMLTableSectionElement::setAlign(const AtomicString& value)
115 {
116 setAttribute(alignAttr, value);
117 }
118
119 const AtomicString& HTMLTableSectionElement::ch() const
120 {
121 return getAttribute(charAttr);
122 }
123
124 void HTMLTableSectionElement::setCh(const AtomicString& value)
125 {
126 setAttribute(charAttr, value);
127 }
128
129 const AtomicString& HTMLTableSectionElement::chOff() const
130 {
131 return getAttribute(charoffAttr);
132 }
133
134 void HTMLTableSectionElement::setChOff(const AtomicString& value)
135 {
136 setAttribute(charoffAttr, value);
137 }
138
139 const AtomicString& HTMLTableSectionElement::vAlign() const
140 {
141 return getAttribute(valignAttr);
142 }
143
144 void HTMLTableSectionElement::setVAlign(const AtomicString& value)
145 {
146 setAttribute(valignAttr, value);
147 }
148
149 PassRefPtr<HTMLCollection> HTMLTableSectionElement::rows() 109 PassRefPtr<HTMLCollection> HTMLTableSectionElement::rows()
150 { 110 {
151 return ensureCachedHTMLCollection(TSectionRows); 111 return ensureCachedHTMLCollection(TSectionRows);
152 } 112 }
153 113
154 } 114 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTableSectionElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698