| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 361 |
| 362 void setRegionOversetState(RegionOversetState); | 362 void setRegionOversetState(RegionOversetState); |
| 363 RegionOversetState regionOversetState() const; | 363 RegionOversetState regionOversetState() const; |
| 364 | 364 |
| 365 AtomicString computeInheritedLanguage() const; | 365 AtomicString computeInheritedLanguage() const; |
| 366 Locale& locale() const; | 366 Locale& locale() const; |
| 367 | 367 |
| 368 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } | 368 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } |
| 369 | 369 |
| 370 virtual bool isURLAttribute(const Attribute&) const { return false; } | 370 virtual bool isURLAttribute(const Attribute&) const { return false; } |
| 371 bool isJavaScriptURLAttribute(const Attribute&) const; | |
| 372 virtual bool isHTMLContentAttribute(const Attribute&) const { return false;
} | 371 virtual bool isHTMLContentAttribute(const Attribute&) const { return false;
} |
| 373 | 372 |
| 374 KURL getURLAttribute(const QualifiedName&) const; | 373 KURL getURLAttribute(const QualifiedName&) const; |
| 375 KURL getNonEmptyURLAttribute(const QualifiedName&) const; | 374 KURL getNonEmptyURLAttribute(const QualifiedName&) const; |
| 376 | 375 |
| 377 virtual const AtomicString imageSourceURL() const; | 376 virtual const AtomicString imageSourceURL() const; |
| 378 virtual String target() const { return String(); } | 377 virtual String target() const { return String(); } |
| 379 virtual Image* imageContents() { return 0; } | 378 virtual Image* imageContents() { return 0; } |
| 380 | 379 |
| 381 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo
cusDirectionNone); | 380 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo
cusDirectionNone); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 | 661 |
| 663 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); | 662 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); |
| 664 | 663 |
| 665 ElementRareData* elementRareData() const; | 664 ElementRareData* elementRareData() const; |
| 666 ElementRareData& ensureElementRareData(); | 665 ElementRareData& ensureElementRareData(); |
| 667 | 666 |
| 668 void detachAllAttrNodesFromElement(); | 667 void detachAllAttrNodesFromElement(); |
| 669 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 668 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
| 670 void detachAttrNodeAtIndex(Attr*, size_t index); | 669 void detachAttrNodeAtIndex(Attr*, size_t index); |
| 671 | 670 |
| 671 bool isJavaScriptURLAttribute(const Attribute&) const; |
| 672 |
| 672 RefPtr<ElementData> m_elementData; | 673 RefPtr<ElementData> m_elementData; |
| 673 }; | 674 }; |
| 674 | 675 |
| 675 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); | 676 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); |
| 676 | 677 |
| 677 inline bool isDisabledFormControl(const Node* node) | 678 inline bool isDisabledFormControl(const Node* node) |
| 678 { | 679 { |
| 679 return node->isElementNode() && toElement(node)->isDisabledFormControl(); | 680 return node->isElementNode() && toElement(node)->isDisabledFormControl(); |
| 680 } | 681 } |
| 681 | 682 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 } | 886 } |
| 886 | 887 |
| 887 inline bool isShadowHost(const Element* element) | 888 inline bool isShadowHost(const Element* element) |
| 888 { | 889 { |
| 889 return element && element->shadow(); | 890 return element && element->shadow(); |
| 890 } | 891 } |
| 891 | 892 |
| 892 } // namespace | 893 } // namespace |
| 893 | 894 |
| 894 #endif | 895 #endif |
| OLD | NEW |