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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 #include <wtf/Vector.h> | 120 #include <wtf/Vector.h> |
121 #include <wtf/text/CString.h> | 121 #include <wtf/text/CString.h> |
122 #include <wtf/text/StringBuilder.h> | 122 #include <wtf/text/StringBuilder.h> |
123 | 123 |
124 #ifndef NDEBUG | 124 #ifndef NDEBUG |
125 #include "RenderLayer.h" | 125 #include "RenderLayer.h" |
126 #endif | 126 #endif |
127 | 127 |
128 #include "InspectorController.h" | 128 #include "InspectorController.h" |
129 | 129 |
130 #if ENABLE(MICRODATA) | |
131 #include "HTMLPropertiesCollection.h" | |
132 #include "PropertyNodeList.h" | |
133 #endif | |
134 | |
135 using namespace std; | 130 using namespace std; |
136 | 131 |
137 namespace WebCore { | 132 namespace WebCore { |
138 | 133 |
139 using namespace HTMLNames; | 134 using namespace HTMLNames; |
140 | 135 |
141 bool Node::isSupported(const String& feature, const String& version) | 136 bool Node::isSupported(const String& feature, const String& version) |
142 { | 137 { |
143 return DOMImplementation::hasFeature(feature, version); | 138 return DOMImplementation::hasFeature(feature, version); |
144 } | 139 } |
(...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2528 { | 2523 { |
2529 #if ENABLE(TOUCH_EVENTS) | 2524 #if ENABLE(TOUCH_EVENTS) |
2530 if (isDisabledFormControl(this)) | 2525 if (isDisabledFormControl(this)) |
2531 return false; | 2526 return false; |
2532 return hasEventListeners(eventNames().touchstartEvent) || hasEventListeners(
eventNames().touchmoveEvent) || hasEventListeners(eventNames().touchcancelEvent)
|| hasEventListeners(eventNames().touchendEvent); | 2527 return hasEventListeners(eventNames().touchstartEvent) || hasEventListeners(
eventNames().touchmoveEvent) || hasEventListeners(eventNames().touchcancelEvent)
|| hasEventListeners(eventNames().touchendEvent); |
2533 #else | 2528 #else |
2534 return false; | 2529 return false; |
2535 #endif | 2530 #endif |
2536 } | 2531 } |
2537 | 2532 |
2538 #if ENABLE(MICRODATA) | |
2539 DOMSettableTokenList* Node::itemProp() | |
2540 { | |
2541 return ensureRareData()->ensureMicroDataTokenLists()->itemProp(this); | |
2542 } | |
2543 | |
2544 void Node::setItemProp(const String& value) | |
2545 { | |
2546 ensureRareData()->ensureMicroDataTokenLists()->itemProp(this)->setValueInter
nal(value); | |
2547 } | |
2548 | |
2549 DOMSettableTokenList* Node::itemRef() | |
2550 { | |
2551 return ensureRareData()->ensureMicroDataTokenLists()->itemRef(this); | |
2552 } | |
2553 | |
2554 void Node::setItemRef(const String& value) | |
2555 { | |
2556 ensureRareData()->ensureMicroDataTokenLists()->itemRef(this)->setValueIntern
al(value); | |
2557 } | |
2558 | |
2559 DOMSettableTokenList* Node::itemType() | |
2560 { | |
2561 return ensureRareData()->ensureMicroDataTokenLists()->itemType(this); | |
2562 } | |
2563 | |
2564 void Node::setItemType(const String& value) | |
2565 { | |
2566 ensureRareData()->ensureMicroDataTokenLists()->itemType(this)->setValueInter
nal(value); | |
2567 } | |
2568 | |
2569 PassRefPtr<PropertyNodeList> Node::propertyNodeList(const String& name) | |
2570 { | |
2571 return ensureRareData()->ensureNodeLists()->addCacheWithName<PropertyNodeLis
t>(this, PropertyNodeListType, name); | |
2572 } | |
2573 #endif | |
2574 | |
2575 // This is here for inlining | 2533 // This is here for inlining |
2576 inline void TreeScope::removedLastRefToScope() | 2534 inline void TreeScope::removedLastRefToScope() |
2577 { | 2535 { |
2578 ASSERT(!deletionHasBegun()); | 2536 ASSERT(!deletionHasBegun()); |
2579 if (m_guardRefCount) { | 2537 if (m_guardRefCount) { |
2580 // If removing a child removes the last self-only ref, we don't | 2538 // If removing a child removes the last self-only ref, we don't |
2581 // want the scope to be destructed until after | 2539 // want the scope to be destructed until after |
2582 // removeDetachedChildren returns, so we guard ourselves with an | 2540 // removeDetachedChildren returns, so we guard ourselves with an |
2583 // extra self-only ref. | 2541 // extra self-only ref. |
2584 guardRef(); | 2542 guardRef(); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2751 node->showTreeForThis(); | 2709 node->showTreeForThis(); |
2752 } | 2710 } |
2753 | 2711 |
2754 void showNodePath(const WebCore::Node* node) | 2712 void showNodePath(const WebCore::Node* node) |
2755 { | 2713 { |
2756 if (node) | 2714 if (node) |
2757 node->showNodePathForThis(); | 2715 node->showNodePathForThis(); |
2758 } | 2716 } |
2759 | 2717 |
2760 #endif | 2718 #endif |
OLD | NEW |