| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #include "core/html/HTMLAnchorElement.h" | 78 #include "core/html/HTMLAnchorElement.h" |
| 79 #include "core/html/HTMLDialogElement.h" | 79 #include "core/html/HTMLDialogElement.h" |
| 80 #include "core/html/HTMLFrameOwnerElement.h" | 80 #include "core/html/HTMLFrameOwnerElement.h" |
| 81 #include "core/html/HTMLStyleElement.h" | 81 #include "core/html/HTMLStyleElement.h" |
| 82 #include "core/html/RadioNodeList.h" | 82 #include "core/html/RadioNodeList.h" |
| 83 #include "core/page/ContextMenuController.h" | 83 #include "core/page/ContextMenuController.h" |
| 84 #include "core/page/EventHandler.h" | 84 #include "core/page/EventHandler.h" |
| 85 #include "core/frame/Frame.h" | 85 #include "core/frame/Frame.h" |
| 86 #include "core/page/Page.h" | 86 #include "core/page/Page.h" |
| 87 #include "core/frame/Settings.h" | 87 #include "core/frame/Settings.h" |
| 88 #include "core/rendering/FlowThreadController.h" | |
| 89 #include "core/rendering/RenderBox.h" | 88 #include "core/rendering/RenderBox.h" |
| 90 #include "core/svg/graphics/SVGImage.h" | 89 #include "core/svg/graphics/SVGImage.h" |
| 91 #include "platform/Partitions.h" | 90 #include "platform/Partitions.h" |
| 92 #include "wtf/HashSet.h" | 91 #include "wtf/HashSet.h" |
| 93 #include "wtf/PassOwnPtr.h" | 92 #include "wtf/PassOwnPtr.h" |
| 94 #include "wtf/RefCountedLeakCounter.h" | 93 #include "wtf/RefCountedLeakCounter.h" |
| 95 #include "wtf/Vector.h" | 94 #include "wtf/Vector.h" |
| 96 #include "wtf/text/CString.h" | 95 #include "wtf/text/CString.h" |
| 97 #include "wtf/text/StringBuilder.h" | 96 #include "wtf/text/StringBuilder.h" |
| 98 | 97 |
| (...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 if (renderer()) { | 1125 if (renderer()) { |
| 1127 RenderStyle* style = renderer()->style(); | 1126 RenderStyle* style = renderer()->style(); |
| 1128 // We allow selections to begin within an element that has -webkit-user-
select: none set, | 1127 // We allow selections to begin within an element that has -webkit-user-
select: none set, |
| 1129 // but if the element is draggable then dragging should take priority ov
er selection. | 1128 // but if the element is draggable then dragging should take priority ov
er selection. |
| 1130 if (style->userDrag() == DRAG_ELEMENT && style->userSelect() == SELECT_N
ONE) | 1129 if (style->userDrag() == DRAG_ELEMENT && style->userSelect() == SELECT_N
ONE) |
| 1131 return false; | 1130 return false; |
| 1132 } | 1131 } |
| 1133 return parentOrShadowHostNode() ? parentOrShadowHostNode()->canStartSelectio
n() : true; | 1132 return parentOrShadowHostNode() ? parentOrShadowHostNode()->canStartSelectio
n() : true; |
| 1134 } | 1133 } |
| 1135 | 1134 |
| 1136 bool Node::isRegisteredWithNamedFlow() const | |
| 1137 { | |
| 1138 return document().renderView()->flowThreadController()->isContentNodeRegiste
redWithAnyNamedFlow(this); | |
| 1139 } | |
| 1140 | |
| 1141 Element* Node::shadowHost() const | 1135 Element* Node::shadowHost() const |
| 1142 { | 1136 { |
| 1143 if (ShadowRoot* root = containingShadowRoot()) | 1137 if (ShadowRoot* root = containingShadowRoot()) |
| 1144 return root->host(); | 1138 return root->host(); |
| 1145 return 0; | 1139 return 0; |
| 1146 } | 1140 } |
| 1147 | 1141 |
| 1148 Node* Node::deprecatedShadowAncestorNode() const | 1142 Node* Node::deprecatedShadowAncestorNode() const |
| 1149 { | 1143 { |
| 1150 if (ShadowRoot* root = containingShadowRoot()) | 1144 if (ShadowRoot* root = containingShadowRoot()) |
| (...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2631 node->showTreeForThis(); | 2625 node->showTreeForThis(); |
| 2632 } | 2626 } |
| 2633 | 2627 |
| 2634 void showNodePath(const WebCore::Node* node) | 2628 void showNodePath(const WebCore::Node* node) |
| 2635 { | 2629 { |
| 2636 if (node) | 2630 if (node) |
| 2637 node->showNodePathForThis(); | 2631 node->showNodePathForThis(); |
| 2638 } | 2632 } |
| 2639 | 2633 |
| 2640 #endif | 2634 #endif |
| OLD | NEW |