| 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 363 |
| 364 void setRegionOversetState(RegionOversetState); | 364 void setRegionOversetState(RegionOversetState); |
| 365 RegionOversetState regionOversetState() const; | 365 RegionOversetState regionOversetState() const; |
| 366 | 366 |
| 367 AtomicString computeInheritedLanguage() const; | 367 AtomicString computeInheritedLanguage() const; |
| 368 Locale& locale() const; | 368 Locale& locale() const; |
| 369 | 369 |
| 370 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } | 370 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } |
| 371 | 371 |
| 372 virtual bool isURLAttribute(const Attribute&) const { return false; } | 372 virtual bool isURLAttribute(const Attribute&) const { return false; } |
| 373 bool isJavaScriptURLAttribute(const Attribute&) const; |
| 373 virtual bool isHTMLContentAttribute(const Attribute&) const { return false;
} | 374 virtual bool isHTMLContentAttribute(const Attribute&) const { return false;
} |
| 374 | 375 |
| 375 KURL getURLAttribute(const QualifiedName&) const; | 376 KURL getURLAttribute(const QualifiedName&) const; |
| 376 KURL getNonEmptyURLAttribute(const QualifiedName&) const; | 377 KURL getNonEmptyURLAttribute(const QualifiedName&) const; |
| 377 | 378 |
| 378 virtual const AtomicString imageSourceURL() const; | 379 virtual const AtomicString imageSourceURL() const; |
| 379 virtual String target() const { return String(); } | 380 virtual String target() const { return String(); } |
| 380 virtual Image* imageContents() { return 0; } | 381 virtual Image* imageContents() { return 0; } |
| 381 | 382 |
| 382 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo
cusDirectionNone); | 383 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo
cusDirectionNone); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 | 659 |
| 659 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); | 660 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); |
| 660 | 661 |
| 661 ElementRareData* elementRareData() const; | 662 ElementRareData* elementRareData() const; |
| 662 ElementRareData& ensureElementRareData(); | 663 ElementRareData& ensureElementRareData(); |
| 663 | 664 |
| 664 void detachAllAttrNodesFromElement(); | 665 void detachAllAttrNodesFromElement(); |
| 665 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 666 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
| 666 void detachAttrNodeAtIndex(Attr*, size_t index); | 667 void detachAttrNodeAtIndex(Attr*, size_t index); |
| 667 | 668 |
| 668 bool isJavaScriptURLAttribute(const Attribute&) const; | |
| 669 | |
| 670 RefPtr<ElementData> m_elementData; | 669 RefPtr<ElementData> m_elementData; |
| 671 }; | 670 }; |
| 672 | 671 |
| 673 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); | 672 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); |
| 674 | 673 |
| 675 inline bool isDisabledFormControl(const Node* node) | 674 inline bool isDisabledFormControl(const Node* node) |
| 676 { | 675 { |
| 677 return node->isElementNode() && toElement(node)->isDisabledFormControl(); | 676 return node->isElementNode() && toElement(node)->isDisabledFormControl(); |
| 678 } | 677 } |
| 679 | 678 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 } | 882 } |
| 884 | 883 |
| 885 inline bool isShadowHost(const Element* element) | 884 inline bool isShadowHost(const Element* element) |
| 886 { | 885 { |
| 887 return element && element->shadow(); | 886 return element && element->shadow(); |
| 888 } | 887 } |
| 889 | 888 |
| 890 } // namespace | 889 } // namespace |
| 891 | 890 |
| 892 #endif | 891 #endif |
| OLD | NEW |