| 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 |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "config.h" | 25 #include "sky/engine/config.h" |
| 26 #include "core/dom/Node.h" | 26 #include "sky/engine/core/dom/Node.h" |
| 27 | 27 |
| 28 #include "bindings/core/v8/DOMDataStore.h" | |
| 29 #include "bindings/core/v8/ExceptionState.h" | |
| 30 #include "bindings/core/v8/ScriptCallStackFactory.h" | |
| 31 #include "bindings/core/v8/V8DOMWrapper.h" | |
| 32 #include "gen/sky/core/HTMLNames.h" | 28 #include "gen/sky/core/HTMLNames.h" |
| 33 #include "core/css/resolver/StyleResolver.h" | 29 #include "sky/engine/bindings/core/v8/DOMDataStore.h" |
| 34 #include "core/dom/Attr.h" | 30 #include "sky/engine/bindings/core/v8/ExceptionState.h" |
| 35 #include "core/dom/Attribute.h" | 31 #include "sky/engine/bindings/core/v8/ScriptCallStackFactory.h" |
| 36 #include "core/dom/ChildListMutationScope.h" | 32 #include "sky/engine/bindings/core/v8/V8DOMWrapper.h" |
| 37 #include "core/dom/Document.h" | 33 #include "sky/engine/core/css/resolver/StyleResolver.h" |
| 38 #include "core/dom/DocumentFragment.h" | 34 #include "sky/engine/core/dom/Attr.h" |
| 39 #include "core/dom/DocumentMarkerController.h" | 35 #include "sky/engine/core/dom/Attribute.h" |
| 40 #include "core/dom/Element.h" | 36 #include "sky/engine/core/dom/ChildListMutationScope.h" |
| 41 #include "core/dom/ElementRareData.h" | 37 #include "sky/engine/core/dom/Document.h" |
| 42 #include "core/dom/ElementTraversal.h" | 38 #include "sky/engine/core/dom/DocumentFragment.h" |
| 43 #include "core/dom/ExceptionCode.h" | 39 #include "sky/engine/core/dom/DocumentMarkerController.h" |
| 44 #include "core/dom/NodeRareData.h" | 40 #include "sky/engine/core/dom/Element.h" |
| 45 #include "core/dom/NodeRenderingTraversal.h" | 41 #include "sky/engine/core/dom/ElementRareData.h" |
| 46 #include "core/dom/NodeTraversal.h" | 42 #include "sky/engine/core/dom/ElementTraversal.h" |
| 47 #include "core/dom/Range.h" | 43 #include "sky/engine/core/dom/ExceptionCode.h" |
| 48 #include "core/dom/StaticNodeList.h" | 44 #include "sky/engine/core/dom/NodeRareData.h" |
| 49 #include "core/dom/TemplateContentDocumentFragment.h" | 45 #include "sky/engine/core/dom/NodeRenderingTraversal.h" |
| 50 #include "core/dom/Text.h" | 46 #include "sky/engine/core/dom/NodeTraversal.h" |
| 51 #include "core/dom/TreeScopeAdopter.h" | 47 #include "sky/engine/core/dom/Range.h" |
| 52 #include "core/dom/UserActionElementSet.h" | 48 #include "sky/engine/core/dom/StaticNodeList.h" |
| 53 #include "core/dom/WeakNodeMap.h" | 49 #include "sky/engine/core/dom/TemplateContentDocumentFragment.h" |
| 54 #include "core/dom/shadow/ElementShadow.h" | 50 #include "sky/engine/core/dom/Text.h" |
| 55 #include "core/dom/shadow/InsertionPoint.h" | 51 #include "sky/engine/core/dom/TreeScopeAdopter.h" |
| 56 #include "core/dom/shadow/ShadowRoot.h" | 52 #include "sky/engine/core/dom/UserActionElementSet.h" |
| 57 #include "core/editing/htmlediting.h" | 53 #include "sky/engine/core/dom/WeakNodeMap.h" |
| 58 #include "core/editing/markup.h" | 54 #include "sky/engine/core/dom/shadow/ElementShadow.h" |
| 59 #include "core/events/Event.h" | 55 #include "sky/engine/core/dom/shadow/InsertionPoint.h" |
| 60 #include "core/events/EventDispatchMediator.h" | 56 #include "sky/engine/core/dom/shadow/ShadowRoot.h" |
| 61 #include "core/events/EventDispatcher.h" | 57 #include "sky/engine/core/editing/htmlediting.h" |
| 62 #include "core/events/EventListener.h" | 58 #include "sky/engine/core/editing/markup.h" |
| 63 #include "core/events/GestureEvent.h" | 59 #include "sky/engine/core/events/Event.h" |
| 64 #include "core/events/KeyboardEvent.h" | 60 #include "sky/engine/core/events/EventDispatchMediator.h" |
| 65 #include "core/events/MouseEvent.h" | 61 #include "sky/engine/core/events/EventDispatcher.h" |
| 66 #include "core/events/TextEvent.h" | 62 #include "sky/engine/core/events/EventListener.h" |
| 67 #include "core/events/TouchEvent.h" | 63 #include "sky/engine/core/events/GestureEvent.h" |
| 68 #include "core/events/UIEvent.h" | 64 #include "sky/engine/core/events/KeyboardEvent.h" |
| 69 #include "core/events/WheelEvent.h" | 65 #include "sky/engine/core/events/MouseEvent.h" |
| 70 #include "core/frame/LocalFrame.h" | 66 #include "sky/engine/core/events/TextEvent.h" |
| 71 #include "core/frame/Settings.h" | 67 #include "sky/engine/core/events/TouchEvent.h" |
| 72 #include "core/html/HTMLAnchorElement.h" | 68 #include "sky/engine/core/events/UIEvent.h" |
| 73 #include "core/html/HTMLStyleElement.h" | 69 #include "sky/engine/core/events/WheelEvent.h" |
| 74 #include "core/page/EventHandler.h" | 70 #include "sky/engine/core/frame/LocalFrame.h" |
| 75 #include "core/page/Page.h" | 71 #include "sky/engine/core/frame/Settings.h" |
| 76 #include "core/rendering/RenderBox.h" | 72 #include "sky/engine/core/html/HTMLAnchorElement.h" |
| 77 #include "platform/EventDispatchForbiddenScope.h" | 73 #include "sky/engine/core/html/HTMLStyleElement.h" |
| 78 #include "platform/Partitions.h" | 74 #include "sky/engine/core/page/EventHandler.h" |
| 79 #include "platform/TraceEvent.h" | 75 #include "sky/engine/core/page/Page.h" |
| 80 #include "platform/TracedValue.h" | 76 #include "sky/engine/core/rendering/RenderBox.h" |
| 81 #include "wtf/HashSet.h" | 77 #include "sky/engine/platform/EventDispatchForbiddenScope.h" |
| 82 #include "wtf/PassOwnPtr.h" | 78 #include "sky/engine/platform/Partitions.h" |
| 83 #include "wtf/RefCountedLeakCounter.h" | 79 #include "sky/engine/platform/TraceEvent.h" |
| 84 #include "wtf/Vector.h" | 80 #include "sky/engine/platform/TracedValue.h" |
| 85 #include "wtf/text/CString.h" | 81 #include "sky/engine/wtf/HashSet.h" |
| 86 #include "wtf/text/StringBuilder.h" | 82 #include "sky/engine/wtf/PassOwnPtr.h" |
| 83 #include "sky/engine/wtf/RefCountedLeakCounter.h" |
| 84 #include "sky/engine/wtf/Vector.h" |
| 85 #include "sky/engine/wtf/text/CString.h" |
| 86 #include "sky/engine/wtf/text/StringBuilder.h" |
| 87 | 87 |
| 88 namespace blink { | 88 namespace blink { |
| 89 | 89 |
| 90 struct SameSizeAsNode : public EventTarget, public TreeShared<Node> { | 90 struct SameSizeAsNode : public EventTarget, public TreeShared<Node> { |
| 91 uint32_t m_nodeFlags; | 91 uint32_t m_nodeFlags; |
| 92 void* m_pointer[5]; | 92 void* m_pointer[5]; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 COMPILE_ASSERT(sizeof(Node) <= sizeof(SameSizeAsNode), Node_should_stay_small); | 95 COMPILE_ASSERT(sizeof(Node) <= sizeof(SameSizeAsNode), Node_should_stay_small); |
| 96 | 96 |
| (...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1850 node->showTreeForThis(); | 1850 node->showTreeForThis(); |
| 1851 } | 1851 } |
| 1852 | 1852 |
| 1853 void showNodePath(const blink::Node* node) | 1853 void showNodePath(const blink::Node* node) |
| 1854 { | 1854 { |
| 1855 if (node) | 1855 if (node) |
| 1856 node->showNodePathForThis(); | 1856 node->showNodePathForThis(); |
| 1857 } | 1857 } |
| 1858 | 1858 |
| 1859 #endif | 1859 #endif |
| OLD | NEW |