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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 11 matching lines...) Expand all Loading... |
22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 #include "core/dom/Node.h" | 26 #include "core/dom/Node.h" |
27 | 27 |
28 #include "bindings/core/v8/DOMDataStore.h" | 28 #include "bindings/core/v8/DOMDataStore.h" |
29 #include "bindings/core/v8/ExceptionState.h" | 29 #include "bindings/core/v8/ExceptionState.h" |
30 #include "bindings/core/v8/V8DOMWrapper.h" | 30 #include "bindings/core/v8/V8DOMWrapper.h" |
31 #include "core/HTMLNames.h" | 31 #include "core/HTMLNames.h" |
| 32 #include "core/css/CSSSelector.h" |
32 #include "core/css/resolver/StyleResolver.h" | 33 #include "core/css/resolver/StyleResolver.h" |
33 #include "core/dom/AXObjectCache.h" | 34 #include "core/dom/AXObjectCache.h" |
34 #include "core/dom/Attr.h" | 35 #include "core/dom/Attr.h" |
35 #include "core/dom/Attribute.h" | 36 #include "core/dom/Attribute.h" |
36 #include "core/dom/ChildListMutationScope.h" | 37 #include "core/dom/ChildListMutationScope.h" |
37 #include "core/dom/ChildNodeList.h" | 38 #include "core/dom/ChildNodeList.h" |
38 #include "core/dom/DOMNodeIds.h" | 39 #include "core/dom/DOMNodeIds.h" |
39 #include "core/dom/Document.h" | 40 #include "core/dom/Document.h" |
40 #include "core/dom/DocumentFragment.h" | 41 #include "core/dom/DocumentFragment.h" |
41 #include "core/dom/DocumentType.h" | 42 #include "core/dom/DocumentType.h" |
(...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 case Upgraded: | 2271 case Upgraded: |
2271 ASSERT(WaitingForUpgrade == oldState); | 2272 ASSERT(WaitingForUpgrade == oldState); |
2272 break; | 2273 break; |
2273 } | 2274 } |
2274 | 2275 |
2275 ASSERT(isHTMLElement() || isSVGElement()); | 2276 ASSERT(isHTMLElement() || isSVGElement()); |
2276 setFlag(CustomElementFlag); | 2277 setFlag(CustomElementFlag); |
2277 setFlag(newState == Upgraded, CustomElementUpgradedFlag); | 2278 setFlag(newState == Upgraded, CustomElementUpgradedFlag); |
2278 | 2279 |
2279 if (oldState == NotCustomElement || newState == Upgraded) | 2280 if (oldState == NotCustomElement || newState == Upgraded) |
2280 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::cre
ateWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Unresolve
d)); // :unresolved has changed | 2281 toElement(this)->pseudoStateChanged(CSSSelector::PseudoUnresolved); |
2281 } | 2282 } |
2282 | 2283 |
2283 DEFINE_TRACE(Node) | 2284 DEFINE_TRACE(Node) |
2284 { | 2285 { |
2285 #if ENABLE(OILPAN) | 2286 #if ENABLE(OILPAN) |
2286 visitor->trace(m_parentOrShadowHostNode); | 2287 visitor->trace(m_parentOrShadowHostNode); |
2287 visitor->trace(m_previous); | 2288 visitor->trace(m_previous); |
2288 visitor->trace(m_next); | 2289 visitor->trace(m_next); |
2289 // rareData() and m_data.m_layoutObject share their storage. We have to trac
e | 2290 // rareData() and m_data.m_layoutObject share their storage. We have to trac
e |
2290 // only one of them. | 2291 // only one of them. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2363 | 2364 |
2364 void showNodePath(const blink::Node* node) | 2365 void showNodePath(const blink::Node* node) |
2365 { | 2366 { |
2366 if (node) | 2367 if (node) |
2367 node->showNodePathForThis(); | 2368 node->showNodePathForThis(); |
2368 else | 2369 else |
2369 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2370 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
2370 } | 2371 } |
2371 | 2372 |
2372 #endif | 2373 #endif |
OLD | NEW |