| 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 2793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2804 return hasRareData() ? elementRareData()->pseudoElement(pseudoId) : 0; | 2804 return hasRareData() ? elementRareData()->pseudoElement(pseudoId) : 0; |
| 2805 } | 2805 } |
| 2806 | 2806 |
| 2807 RenderObject* Element::pseudoElementRenderer(PseudoId pseudoId) const | 2807 RenderObject* Element::pseudoElementRenderer(PseudoId pseudoId) const |
| 2808 { | 2808 { |
| 2809 if (PseudoElement* element = pseudoElement(pseudoId)) | 2809 if (PseudoElement* element = pseudoElement(pseudoId)) |
| 2810 return element->renderer(); | 2810 return element->renderer(); |
| 2811 return 0; | 2811 return 0; |
| 2812 } | 2812 } |
| 2813 | 2813 |
| 2814 bool Element::webkitMatchesSelector(const String& selector, ExceptionState& exce
ptionState) | 2814 bool Element::matches(const String& selectors, ExceptionState& exceptionState) |
| 2815 { | 2815 { |
| 2816 if (selector.isEmpty()) { | 2816 SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicStr
ing(selectors), document(), exceptionState); |
| 2817 exceptionState.throwDOMException(SyntaxError, "The selector provided is
empty."); | |
| 2818 return false; | |
| 2819 } | |
| 2820 | |
| 2821 SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicStr
ing(selector), document(), exceptionState); | |
| 2822 if (!selectorQuery) | 2817 if (!selectorQuery) |
| 2823 return false; | 2818 return false; |
| 2824 return selectorQuery->matches(*this); | 2819 return selectorQuery->matches(*this); |
| 2825 } | 2820 } |
| 2826 | 2821 |
| 2827 DOMTokenList* Element::classList() | 2822 DOMTokenList* Element::classList() |
| 2828 { | 2823 { |
| 2829 ElementRareData& rareData = ensureElementRareData(); | 2824 ElementRareData& rareData = ensureElementRareData(); |
| 2830 if (!rareData.classList()) | 2825 if (!rareData.classList()) |
| 2831 rareData.setClassList(ClassList::create(this)); | 2826 rareData.setClassList(ClassList::create(this)); |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3625 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3620 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
| 3626 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3621 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
| 3627 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3622 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
| 3628 return false; | 3623 return false; |
| 3629 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3624 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3630 return false; | 3625 return false; |
| 3631 return true; | 3626 return true; |
| 3632 } | 3627 } |
| 3633 | 3628 |
| 3634 } // namespace WebCore | 3629 } // namespace WebCore |
| OLD | NEW |