| 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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 ElementRareData& rareData = ensureElementRareData(); | 1495 ElementRareData& rareData = ensureElementRareData(); |
| 1496 if (!rareData.classList()) | 1496 if (!rareData.classList()) |
| 1497 rareData.setClassList(ClassList::create(this)); | 1497 rareData.setClassList(ClassList::create(this)); |
| 1498 return *rareData.classList(); | 1498 return *rareData.classList(); |
| 1499 } | 1499 } |
| 1500 | 1500 |
| 1501 KURL Element::hrefURL() const | 1501 KURL Element::hrefURL() const |
| 1502 { | 1502 { |
| 1503 // FIXME: These all have href() or url(), but no common super class. Why doe
sn't | 1503 // FIXME: These all have href() or url(), but no common super class. Why doe
sn't |
| 1504 // <link> implement URLUtils? | 1504 // <link> implement URLUtils? |
| 1505 if (isHTMLAnchorElement(*this) || isHTMLLinkElement(*this)) | 1505 if (isHTMLAnchorElement(*this)) |
| 1506 return getURLAttribute(HTMLNames::hrefAttr); | 1506 return getURLAttribute(HTMLNames::hrefAttr); |
| 1507 return KURL(); | 1507 return KURL(); |
| 1508 } | 1508 } |
| 1509 | 1509 |
| 1510 KURL Element::getURLAttribute(const QualifiedName& name) const | 1510 KURL Element::getURLAttribute(const QualifiedName& name) const |
| 1511 { | 1511 { |
| 1512 #if ENABLE(ASSERT) | 1512 #if ENABLE(ASSERT) |
| 1513 if (elementData()) { | 1513 if (elementData()) { |
| 1514 if (const Attribute* attribute = attributes().find(name)) | 1514 if (const Attribute* attribute = attributes().find(name)) |
| 1515 ASSERT(isURLAttribute(*attribute)); | 1515 ASSERT(isURLAttribute(*attribute)); |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1905 return false; | 1905 return false; |
| 1906 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. | 1906 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. |
| 1907 // See comments in RenderObject::setStyle(). | 1907 // See comments in RenderObject::setStyle(). |
| 1908 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? | 1908 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? |
| 1909 if (isHTMLCanvasElement(*this)) | 1909 if (isHTMLCanvasElement(*this)) |
| 1910 return false; | 1910 return false; |
| 1911 return true; | 1911 return true; |
| 1912 } | 1912 } |
| 1913 | 1913 |
| 1914 } // namespace blink | 1914 } // namespace blink |
| OLD | NEW |