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

Side by Side Diff: Source/core/dom/Attr.cpp

Issue 112843002: Make calls to AtomicString(const String&) explicit in dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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 | « no previous file | Source/core/dom/ClassNodeList.h » ('j') | Source/core/dom/ClassNodeList.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 { 134 {
135 if (m_element) 135 if (m_element)
136 m_element->willModifyAttribute(qualifiedName(), this->value(), value); 136 m_element->willModifyAttribute(qualifiedName(), this->value(), value);
137 137
138 setValue(value); 138 setValue(value);
139 139
140 if (m_element) 140 if (m_element)
141 m_element->didModifyAttribute(qualifiedName(), value); 141 m_element->didModifyAttribute(qualifiedName(), value);
142 } 142 }
143 143
144 void Attr::setNodeValue(const String& v) 144 void Attr::setNodeValue(const String& v)
eseidel 2013/12/15 16:51:26 Does this eventually change to AtomicString too?
Inactive 2013/12/16 14:26:27 The reason I did not update setNodeValue() to take
eseidel 2013/12/30 17:19:27 But why are values atomic in the first place? Wha
Inactive 2013/12/30 19:53:34 Node values are not atomic, they are Strings and I
145 { 145 {
146 setValue(v, IGNORE_EXCEPTION); 146 setValue(AtomicString(v), IGNORE_EXCEPTION);
147 } 147 }
148 148
149 PassRefPtr<Node> Attr::cloneNode(bool /*deep*/) 149 PassRefPtr<Node> Attr::cloneNode(bool /*deep*/)
150 { 150 {
151 RefPtr<Attr> clone = adoptRef(new Attr(document(), qualifiedName(), value()) ); 151 RefPtr<Attr> clone = adoptRef(new Attr(document(), qualifiedName(), value()) );
152 cloneChildNodes(clone.get()); 152 cloneChildNodes(clone.get());
153 return clone.release(); 153 return clone.release();
154 } 154 }
155 155
156 // DOM Section 1.1.1 156 // DOM Section 1.1.1
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 213 }
214 214
215 void Attr::attachToElement(Element* element) 215 void Attr::attachToElement(Element* element)
216 { 216 {
217 ASSERT(!m_element); 217 ASSERT(!m_element);
218 m_element = element; 218 m_element = element;
219 m_standaloneValue = nullAtom; 219 m_standaloneValue = nullAtom;
220 } 220 }
221 221
222 } 222 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/ClassNodeList.h » ('j') | Source/core/dom/ClassNodeList.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698