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

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

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 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 * (C) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 bool HTMLAnchorElement::CanStartSelection() const { 234 bool HTMLAnchorElement::CanStartSelection() const {
235 if (!IsLink()) 235 if (!IsLink())
236 return HTMLElement::CanStartSelection(); 236 return HTMLElement::CanStartSelection();
237 return HasEditableStyle(*this); 237 return HasEditableStyle(*this);
238 } 238 }
239 239
240 bool HTMLAnchorElement::draggable() const { 240 bool HTMLAnchorElement::draggable() const {
241 // Should be draggable if we have an href attribute. 241 // Should be draggable if we have an href attribute.
242 const AtomicString& value = getAttribute(draggableAttr); 242 const AtomicString& value = getAttribute(draggableAttr);
243 if (EqualIgnoringCase(value, "true")) 243 if (DeprecatedEqualIgnoringCase(value, "true"))
244 return true; 244 return true;
245 if (EqualIgnoringCase(value, "false")) 245 if (DeprecatedEqualIgnoringCase(value, "false"))
246 return false; 246 return false;
247 return hasAttribute(hrefAttr); 247 return hasAttribute(hrefAttr);
248 } 248 }
249 249
250 KURL HTMLAnchorElement::Href() const { 250 KURL HTMLAnchorElement::Href() const {
251 return GetDocument().CompleteURL( 251 return GetDocument().CompleteURL(
252 StripLeadingAndTrailingHTMLSpaces(getAttribute(hrefAttr))); 252 StripLeadingAndTrailingHTMLSpaces(getAttribute(hrefAttr)));
253 } 253 }
254 254
255 void HTMLAnchorElement::SetHref(const AtomicString& value) { 255 void HTMLAnchorElement::SetHref(const AtomicString& value) {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 Node::InsertionNotificationRequest HTMLAnchorElement::InsertedInto( 402 Node::InsertionNotificationRequest HTMLAnchorElement::InsertedInto(
403 ContainerNode* insertion_point) { 403 ContainerNode* insertion_point) {
404 InsertionNotificationRequest request = 404 InsertionNotificationRequest request =
405 HTMLElement::InsertedInto(insertion_point); 405 HTMLElement::InsertedInto(insertion_point);
406 LogAddElementIfIsolatedWorldAndInDocument("a", hrefAttr); 406 LogAddElementIfIsolatedWorldAndInDocument("a", hrefAttr);
407 return request; 407 return request;
408 } 408 }
409 409
410 } // namespace blink 410 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/CrossOriginAttribute.cpp ('k') | third_party/WebKit/Source/core/html/HTMLBRElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698