| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class Attribute; | 46 class Attribute; |
| 47 class ContainerNode; | 47 class ContainerNode; |
| 48 class Document; | 48 class Document; |
| 49 class Element; | 49 class Element; |
| 50 class Event; | 50 class Event; |
| 51 class EventDispatchMediator; | 51 class EventDispatchMediator; |
| 52 class EventListener; | 52 class EventListener; |
| 53 class ExceptionState; | 53 class ExceptionState; |
| 54 class FloatPoint; | 54 class FloatPoint; |
| 55 class LocalFrame; | 55 class LocalFrame; |
| 56 class HTMLQualifiedName; | |
| 57 class IntRect; | 56 class IntRect; |
| 58 class KeyboardEvent; | 57 class KeyboardEvent; |
| 59 class NSResolver; | 58 class NSResolver; |
| 60 class NodeEventContext; | 59 class NodeEventContext; |
| 61 class NodeList; | 60 class NodeList; |
| 62 class NodeRareData; | 61 class NodeRareData; |
| 63 class QualifiedName; | 62 class QualifiedName; |
| 64 class RegisteredEventListener; | 63 class RegisteredEventListener; |
| 65 class RenderBox; | 64 class RenderBox; |
| 66 class RenderBoxModelObject; | 65 class RenderBoxModelObject; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 void* operator new(size_t); | 126 void* operator new(size_t); |
| 128 void operator delete(void*); | 127 void operator delete(void*); |
| 129 #endif | 128 #endif |
| 130 | 129 |
| 131 static void dumpStatistics(); | 130 static void dumpStatistics(); |
| 132 | 131 |
| 133 virtual ~Node(); | 132 virtual ~Node(); |
| 134 | 133 |
| 135 // DOM methods & attributes for Node | 134 // DOM methods & attributes for Node |
| 136 | 135 |
| 137 bool hasTagName(const HTMLQualifiedName&) const; | |
| 138 virtual String nodeName() const = 0; | 136 virtual String nodeName() const = 0; |
| 139 virtual NodeType nodeType() const = 0; | 137 virtual NodeType nodeType() const = 0; |
| 140 ContainerNode* parentNode() const; | 138 ContainerNode* parentNode() const; |
| 141 Element* parentElement() const; | 139 Element* parentElement() const; |
| 142 Node* previousSibling() const { return m_previous; } | 140 Node* previousSibling() const { return m_previous; } |
| 143 Node* nextSibling() const { return m_next; } | 141 Node* nextSibling() const { return m_next; } |
| 144 Node* firstChild() const; | 142 Node* firstChild() const; |
| 145 Node* lastChild() const; | 143 Node* lastChild() const; |
| 146 | 144 |
| 147 Element* previousElementSibling(); | 145 Element* previousElementSibling(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 void setCustomElementState(CustomElementState newState); | 188 void setCustomElementState(CustomElementState newState); |
| 191 | 189 |
| 192 // StyledElements allow inline style (style="border: 1px"), presentational a
ttributes (ex. color), | 190 // StyledElements allow inline style (style="border: 1px"), presentational a
ttributes (ex. color), |
| 193 // class names (ex. class="foo bar") and other non-basic styling features. T
hey and also control | 191 // class names (ex. class="foo bar") and other non-basic styling features. T
hey and also control |
| 194 // if this element can participate in style sharing. | 192 // if this element can participate in style sharing. |
| 195 // | 193 // |
| 196 // FIXME: The only things that ever go through StyleResolver that aren't Sty
ledElements are | 194 // FIXME: The only things that ever go through StyleResolver that aren't Sty
ledElements are |
| 197 // PseudoElements and VTTElements. It's possible we can just eliminate all t
he checks | 195 // PseudoElements and VTTElements. It's possible we can just eliminate all t
he checks |
| 198 // since those elements will never have class names, inline style, or other
things that | 196 // since those elements will never have class names, inline style, or other
things that |
| 199 // this apparently guards against. | 197 // this apparently guards against. |
| 200 bool isStyledElement() const { return isHTMLElement(); } | 198 bool isStyledElement() const { return isElementNode(); } |
| 201 | 199 |
| 202 bool isDocumentNode() const; | 200 bool isDocumentNode() const; |
| 203 bool isTreeScope() const; | 201 bool isTreeScope() const; |
| 204 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } | 202 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } |
| 205 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } | 203 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } |
| 206 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } | 204 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } |
| 207 | 205 |
| 208 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns 0. | 206 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret
urns 0. |
| 209 Element* shadowHost() const; | 207 Element* shadowHost() const; |
| 210 ShadowRoot* containingShadowRoot() const; | 208 ShadowRoot* containingShadowRoot() const; |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 } // namespace blink | 683 } // namespace blink |
| 686 | 684 |
| 687 #ifndef NDEBUG | 685 #ifndef NDEBUG |
| 688 // Outside the WebCore namespace for ease of invocation from gdb. | 686 // Outside the WebCore namespace for ease of invocation from gdb. |
| 689 void showNode(const blink::Node*); | 687 void showNode(const blink::Node*); |
| 690 void showTree(const blink::Node*); | 688 void showTree(const blink::Node*); |
| 691 void showNodePath(const blink::Node*); | 689 void showNodePath(const blink::Node*); |
| 692 #endif | 690 #endif |
| 693 | 691 |
| 694 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ | 692 #endif // SKY_ENGINE_CORE_DOM_NODE_H_ |
| OLD | NEW |