Chromium Code Reviews| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 613 // Called by the parser when this element's close tag is reached, signaling | 613 // Called by the parser when this element's close tag is reached, signaling |
| 614 // that all child tags have been parsed and added. This is needed for | 614 // that all child tags have been parsed and added. This is needed for |
| 615 // <applet> and <object> elements, which can't lay themselves out until they | 615 // <applet> and <object> elements, which can't lay themselves out until they |
| 616 // know all of their nested <param>s. [Radar 3603191, 4040848]. Also used for | 616 // know all of their nested <param>s. [Radar 3603191, 4040848]. Also used for |
| 617 // script elements and some SVG elements for similar purposes, but making | 617 // script elements and some SVG elements for similar purposes, but making |
| 618 // parsing a special case in this respect should be avoided if possible. | 618 // parsing a special case in this respect should be avoided if possible. |
| 619 virtual void finishParsingChildren(); | 619 virtual void finishParsingChildren(); |
| 620 | 620 |
| 621 void beginParsingChildren() { setIsFinishedParsingChildren(false); } | 621 void beginParsingChildren() { setIsFinishedParsingChildren(false); } |
| 622 | 622 |
| 623 ComputedStyle* pseudoStyle(PseudoId) const; | |
| 624 PassRefPtr<ComputedStyle> getUncachedPseudoStyle(PseudoId) const; | |
| 625 bool canHaveGeneratedPseudo(PseudoId) const; | |
|
rune
2017/03/13 10:29:50
Do these methods need to be public? All of them?
| |
| 623 PseudoElement* pseudoElement(PseudoId) const; | 626 PseudoElement* pseudoElement(PseudoId) const; |
| 624 LayoutObject* pseudoElementLayoutObject(PseudoId) const; | 627 LayoutObject* pseudoElementLayoutObject(PseudoId) const; |
| 625 | 628 |
| 626 virtual bool matchesDefaultPseudoClass() const { return false; } | 629 virtual bool matchesDefaultPseudoClass() const { return false; } |
| 627 virtual bool matchesEnabledPseudoClass() const { return false; } | 630 virtual bool matchesEnabledPseudoClass() const { return false; } |
| 628 virtual bool matchesReadOnlyPseudoClass() const { return false; } | 631 virtual bool matchesReadOnlyPseudoClass() const { return false; } |
| 629 virtual bool matchesReadWritePseudoClass() const { return false; } | 632 virtual bool matchesReadWritePseudoClass() const { return false; } |
| 630 virtual bool matchesValidityPseudoClasses() const { return false; } | 633 virtual bool matchesValidityPseudoClasses() const { return false; } |
| 631 bool matches(const String& selectors, ExceptionState&); | 634 bool matches(const String& selectors, ExceptionState&); |
| 632 Element* closest(const String& selectors, ExceptionState&); | 635 Element* closest(const String& selectors, ExceptionState&); |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1201 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1204 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1202 static T* create(const QualifiedName&, Document&) | 1205 static T* create(const QualifiedName&, Document&) |
| 1203 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1206 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1204 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1207 T* T::create(const QualifiedName& tagName, Document& document) { \ |
| 1205 return new T(tagName, document); \ | 1208 return new T(tagName, document); \ |
| 1206 } | 1209 } |
| 1207 | 1210 |
| 1208 } // namespace blink | 1211 } // namespace blink |
| 1209 | 1212 |
| 1210 #endif // Element_h | 1213 #endif // Element_h |
| OLD | NEW |