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-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 class ElementRareData; | 54 class ElementRareData; |
55 class ElementShadow; | 55 class ElementShadow; |
56 class ExceptionState; | 56 class ExceptionState; |
57 class Image; | 57 class Image; |
58 class InputDeviceCapabilities; | 58 class InputDeviceCapabilities; |
59 class Locale; | 59 class Locale; |
60 class MutableStylePropertySet; | 60 class MutableStylePropertySet; |
61 class NamedNodeMap; | 61 class NamedNodeMap; |
62 class ElementIntersectionObserverData; | 62 class ElementIntersectionObserverData; |
63 class PseudoElement; | 63 class PseudoElement; |
| 64 class PseudoStyleRequest; |
64 class ResizeObservation; | 65 class ResizeObservation; |
65 class ResizeObserver; | 66 class ResizeObserver; |
66 class ScrollState; | 67 class ScrollState; |
67 class ScrollStateCallback; | 68 class ScrollStateCallback; |
68 class ScrollToOptions; | 69 class ScrollToOptions; |
69 class ShadowRoot; | 70 class ShadowRoot; |
70 class ShadowRootInit; | 71 class ShadowRootInit; |
71 class StylePropertySet; | 72 class StylePropertySet; |
72 class StylePropertyMap; | 73 class StylePropertyMap; |
73 class V0CustomElementDefinition; | 74 class V0CustomElementDefinition; |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 // know all of their nested <param>s. [Radar 3603191, 4040848]. Also used for | 620 // know all of their nested <param>s. [Radar 3603191, 4040848]. Also used for |
620 // script elements and some SVG elements for similar purposes, but making | 621 // script elements and some SVG elements for similar purposes, but making |
621 // parsing a special case in this respect should be avoided if possible. | 622 // parsing a special case in this respect should be avoided if possible. |
622 virtual void finishParsingChildren(); | 623 virtual void finishParsingChildren(); |
623 | 624 |
624 void beginParsingChildren() { setIsFinishedParsingChildren(false); } | 625 void beginParsingChildren() { setIsFinishedParsingChildren(false); } |
625 | 626 |
626 PseudoElement* pseudoElement(PseudoId) const; | 627 PseudoElement* pseudoElement(PseudoId) const; |
627 LayoutObject* pseudoElementLayoutObject(PseudoId) const; | 628 LayoutObject* pseudoElementLayoutObject(PseudoId) const; |
628 | 629 |
| 630 ComputedStyle* pseudoStyle(const PseudoStyleRequest&, |
| 631 const ComputedStyle* parentStyle = nullptr); |
| 632 PassRefPtr<ComputedStyle> getUncachedPseudoStyle( |
| 633 const PseudoStyleRequest&, |
| 634 const ComputedStyle* parentStyle = nullptr); |
| 635 |
629 virtual bool matchesDefaultPseudoClass() const { return false; } | 636 virtual bool matchesDefaultPseudoClass() const { return false; } |
630 virtual bool matchesEnabledPseudoClass() const { return false; } | 637 virtual bool matchesEnabledPseudoClass() const { return false; } |
631 virtual bool matchesReadOnlyPseudoClass() const { return false; } | 638 virtual bool matchesReadOnlyPseudoClass() const { return false; } |
632 virtual bool matchesReadWritePseudoClass() const { return false; } | 639 virtual bool matchesReadWritePseudoClass() const { return false; } |
633 virtual bool matchesValidityPseudoClasses() const { return false; } | 640 virtual bool matchesValidityPseudoClasses() const { return false; } |
634 | 641 |
635 // https://dom.spec.whatwg.org/#dom-element-matches | 642 // https://dom.spec.whatwg.org/#dom-element-matches |
636 bool matches(const AtomicString& selectors, | 643 bool matches(const AtomicString& selectors, |
637 ExceptionState& = ASSERT_NO_EXCEPTION); | 644 ExceptionState& = ASSERT_NO_EXCEPTION); |
638 | 645 |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1215 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1209 static T* create(const QualifiedName&, Document&) | 1216 static T* create(const QualifiedName&, Document&) |
1210 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1217 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1211 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1218 T* T::create(const QualifiedName& tagName, Document& document) { \ |
1212 return new T(tagName, document); \ | 1219 return new T(tagName, document); \ |
1213 } | 1220 } |
1214 | 1221 |
1215 } // namespace blink | 1222 } // namespace blink |
1216 | 1223 |
1217 #endif // Element_h | 1224 #endif // Element_h |
OLD | NEW |