| 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) 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 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2905 rareData.setDataset(DatasetDOMStringMap::create(this)); | 2905 rareData.setDataset(DatasetDOMStringMap::create(this)); |
| 2906 return *rareData.dataset(); | 2906 return *rareData.dataset(); |
| 2907 } | 2907 } |
| 2908 | 2908 |
| 2909 KURL Element::hrefURL() const | 2909 KURL Element::hrefURL() const |
| 2910 { | 2910 { |
| 2911 // FIXME: These all have href() or url(), but no common super class. Why doe
sn't | 2911 // FIXME: These all have href() or url(), but no common super class. Why doe
sn't |
| 2912 // <link> implement URLUtils? | 2912 // <link> implement URLUtils? |
| 2913 if (isHTMLAnchorElement(*this) || isHTMLAreaElement(*this) || isHTMLLinkElem
ent(*this)) | 2913 if (isHTMLAnchorElement(*this) || isHTMLAreaElement(*this) || isHTMLLinkElem
ent(*this)) |
| 2914 return getURLAttribute(hrefAttr); | 2914 return getURLAttribute(hrefAttr); |
| 2915 if (isSVGAElement(*this)) | 2915 if (isSVGAElement(*this)) { |
| 2916 if (hasAttribute(SVGNames::hrefAttr)) |
| 2917 return getURLAttribute(SVGNames::hrefAttr); |
| 2916 return getURLAttribute(XLinkNames::hrefAttr); | 2918 return getURLAttribute(XLinkNames::hrefAttr); |
| 2919 } |
| 2917 return KURL(); | 2920 return KURL(); |
| 2918 } | 2921 } |
| 2919 | 2922 |
| 2920 KURL Element::getURLAttribute(const QualifiedName& name) const | 2923 KURL Element::getURLAttribute(const QualifiedName& name) const |
| 2921 { | 2924 { |
| 2922 #if ENABLE(ASSERT) | 2925 #if ENABLE(ASSERT) |
| 2923 if (elementData()) { | 2926 if (elementData()) { |
| 2924 if (const Attribute* attribute = attributes().find(name)) | 2927 if (const Attribute* attribute = attributes().find(name)) |
| 2925 ASSERT(isURLAttribute(*attribute)); | 2928 ASSERT(isURLAttribute(*attribute)); |
| 2926 } | 2929 } |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3615 { | 3618 { |
| 3616 #if ENABLE(OILPAN) | 3619 #if ENABLE(OILPAN) |
| 3617 if (hasRareData()) | 3620 if (hasRareData()) |
| 3618 visitor->trace(elementRareData()); | 3621 visitor->trace(elementRareData()); |
| 3619 visitor->trace(m_elementData); | 3622 visitor->trace(m_elementData); |
| 3620 #endif | 3623 #endif |
| 3621 ContainerNode::trace(visitor); | 3624 ContainerNode::trace(visitor); |
| 3622 } | 3625 } |
| 3623 | 3626 |
| 3624 } // namespace blink | 3627 } // namespace blink |
| OLD | NEW |