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

Side by Side Diff: Source/web/WebElement.cpp

Issue 313973003: Rename ElementData's attribute related methods for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/xml/XPathFunctions.cpp ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 ShadowRoot* shadowRoot = constUnwrap<Element>()->shadowRoot(); 119 ShadowRoot* shadowRoot = constUnwrap<Element>()->shadowRoot();
120 if (!shadowRoot) 120 if (!shadowRoot)
121 return WebNode(); 121 return WebNode();
122 return WebNode(shadowRoot->toNode()); 122 return WebNode(shadowRoot->toNode());
123 } 123 }
124 124
125 WebString WebElement::attributeLocalName(unsigned index) const 125 WebString WebElement::attributeLocalName(unsigned index) const
126 { 126 {
127 if (index >= attributeCount()) 127 if (index >= attributeCount())
128 return WebString(); 128 return WebString();
129 return constUnwrap<Element>()->attributeItem(index).localName(); 129 return constUnwrap<Element>()->attributeAt(index).localName();
130 } 130 }
131 131
132 WebString WebElement::attributeValue(unsigned index) const 132 WebString WebElement::attributeValue(unsigned index) const
133 { 133 {
134 if (index >= attributeCount()) 134 if (index >= attributeCount())
135 return WebString(); 135 return WebString();
136 return constUnwrap<Element>()->attributeItem(index).value(); 136 return constUnwrap<Element>()->attributeAt(index).value();
137 } 137 }
138 138
139 WebString WebElement::innerText() 139 WebString WebElement::innerText()
140 { 140 {
141 return unwrap<Element>()->innerText(); 141 return unwrap<Element>()->innerText();
142 } 142 }
143 143
144 WebString WebElement::computeInheritedLanguage() const 144 WebString WebElement::computeInheritedLanguage() const
145 { 145 {
146 return WebString(constUnwrap<Element>()->computeInheritedLanguage()); 146 return WebString(constUnwrap<Element>()->computeInheritedLanguage());
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 m_private = elem; 182 m_private = elem;
183 return *this; 183 return *this;
184 } 184 }
185 185
186 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const 186 WebElement::operator PassRefPtrWillBeRawPtr<Element>() const
187 { 187 {
188 return toElement(m_private.get()); 188 return toElement(m_private.get());
189 } 189 }
190 190
191 } // namespace blink 191 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/xml/XPathFunctions.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698