| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |