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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMapElement.cpp

Issue 1835773002: Rename AtomicString::string() to AtomicString::getString(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows Created 4 years, 8 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
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 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 HTMLImageElement* HTMLMapElement::imageElement() 63 HTMLImageElement* HTMLMapElement::imageElement()
64 { 64 {
65 RefPtrWillBeRawPtr<HTMLCollection> images = document().images(); 65 RefPtrWillBeRawPtr<HTMLCollection> images = document().images();
66 for (unsigned i = 0; Element* curr = images->item(i); ++i) { 66 for (unsigned i = 0; Element* curr = images->item(i); ++i) {
67 ASSERT(isHTMLImageElement(curr)); 67 ASSERT(isHTMLImageElement(curr));
68 68
69 // The HTMLImageElement's useMap() value includes the '#' symbol at the beginning, 69 // The HTMLImageElement's useMap() value includes the '#' symbol at the beginning,
70 // which has to be stripped off. 70 // which has to be stripped off.
71 HTMLImageElement& imageElement = toHTMLImageElement(*curr); 71 HTMLImageElement& imageElement = toHTMLImageElement(*curr);
72 String useMapName = imageElement.getAttribute(usemapAttr).string().subst ring(1); 72 String useMapName = imageElement.getAttribute(usemapAttr).getString().su bstring(1);
73 if (equalIgnoringCase(useMapName, m_name)) 73 if (equalIgnoringCase(useMapName, m_name))
74 return &imageElement; 74 return &imageElement;
75 } 75 }
76 76
77 return nullptr; 77 return nullptr;
78 } 78 }
79 79
80 void HTMLMapElement::parseAttribute(const QualifiedName& name, const AtomicStrin g& oldValue, const AtomicString& value) 80 void HTMLMapElement::parseAttribute(const QualifiedName& name, const AtomicStrin g& oldValue, const AtomicString& value)
81 { 81 {
82 // FIXME: This logic seems wrong for XML documents. 82 // FIXME: This logic seems wrong for XML documents.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 118
119 void HTMLMapElement::removedFrom(ContainerNode* insertionPoint) 119 void HTMLMapElement::removedFrom(ContainerNode* insertionPoint)
120 { 120 {
121 if (insertionPoint->inDocument()) 121 if (insertionPoint->inDocument())
122 treeScope().removeImageMap(this); 122 treeScope().removeImageMap(this);
123 HTMLElement::removedFrom(insertionPoint); 123 HTMLElement::removedFrom(insertionPoint);
124 } 124 }
125 125
126 } // namespace blink 126 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMetaElement-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698