| 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 } | 653 } |
| 654 } else if (name == HTMLNames::classAttr) { | 654 } else if (name == HTMLNames::classAttr) { |
| 655 classAttributeChanged(newValue); | 655 classAttributeChanged(newValue); |
| 656 } | 656 } |
| 657 | 657 |
| 658 // If there is currently no StyleResolver, we can't be sure that this attrib
ute change won't affect style. | 658 // If there is currently no StyleResolver, we can't be sure that this attrib
ute change won't affect style. |
| 659 if (!styleResolver) | 659 if (!styleResolver) |
| 660 setNeedsStyleRecalc(SubtreeStyleChange); | 660 setNeedsStyleRecalc(SubtreeStyleChange); |
| 661 } | 661 } |
| 662 | 662 |
| 663 bool Element::hasLegalLinkAttribute(const QualifiedName&) const | |
| 664 { | |
| 665 return false; | |
| 666 } | |
| 667 | |
| 668 const QualifiedName& Element::subResourceAttributeName() const | |
| 669 { | |
| 670 return nullName; | |
| 671 } | |
| 672 | |
| 673 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue, AttributeModificationReason reason) | 663 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue, AttributeModificationReason reason) |
| 674 { | 664 { |
| 675 if (name == HTMLNames::isAttr) | 665 if (name == HTMLNames::isAttr) |
| 676 CustomElementRegistrationContext::setTypeExtension(this, newValue); | 666 CustomElementRegistrationContext::setTypeExtension(this, newValue); |
| 677 attributeChanged(name, newValue, reason); | 667 attributeChanged(name, newValue, reason); |
| 678 } | 668 } |
| 679 | 669 |
| 680 template <typename CharacterType> | 670 template <typename CharacterType> |
| 681 static inline bool classStringHasClassName(const CharacterType* characters, unsi
gned length) | 671 static inline bool classStringHasClassName(const CharacterType* characters, unsi
gned length) |
| 682 { | 672 { |
| (...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1905 return false; | 1895 return false; |
| 1906 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. | 1896 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. |
| 1907 // See comments in RenderObject::setStyle(). | 1897 // See comments in RenderObject::setStyle(). |
| 1908 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? | 1898 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? |
| 1909 if (isHTMLCanvasElement(*this)) | 1899 if (isHTMLCanvasElement(*this)) |
| 1910 return false; | 1900 return false; |
| 1911 return true; | 1901 return true; |
| 1912 } | 1902 } |
| 1913 | 1903 |
| 1914 } // namespace blink | 1904 } // namespace blink |
| OLD | NEW |