| 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 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 if (renderer()) { | 1135 if (renderer()) { |
| 1136 RenderStyle* style = renderer()->style(); | 1136 RenderStyle* style = renderer()->style(); |
| 1137 // We allow selections to begin within an element that has -webkit-user-
select: none set, | 1137 // We allow selections to begin within an element that has -webkit-user-
select: none set, |
| 1138 // but if the element is draggable then dragging should take priority ov
er selection. | 1138 // but if the element is draggable then dragging should take priority ov
er selection. |
| 1139 if (style->userDrag() == DRAG_ELEMENT && style->userSelect() == SELECT_N
ONE) | 1139 if (style->userDrag() == DRAG_ELEMENT && style->userSelect() == SELECT_N
ONE) |
| 1140 return false; | 1140 return false; |
| 1141 } | 1141 } |
| 1142 return parentOrShadowHostNode() ? parentOrShadowHostNode()->canStartSelectio
n() : true; | 1142 return parentOrShadowHostNode() ? parentOrShadowHostNode()->canStartSelectio
n() : true; |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 bool Node::isRegisteredWithNamedFlow() const | |
| 1146 { | |
| 1147 return document().renderView()->flowThreadController()->isContentNodeRegiste
redWithAnyNamedFlow(this); | |
| 1148 } | |
| 1149 | |
| 1150 Element* Node::shadowHost() const | 1145 Element* Node::shadowHost() const |
| 1151 { | 1146 { |
| 1152 if (ShadowRoot* root = containingShadowRoot()) | 1147 if (ShadowRoot* root = containingShadowRoot()) |
| 1153 return root->host(); | 1148 return root->host(); |
| 1154 return 0; | 1149 return 0; |
| 1155 } | 1150 } |
| 1156 | 1151 |
| 1157 Node* Node::deprecatedShadowAncestorNode() const | 1152 Node* Node::deprecatedShadowAncestorNode() const |
| 1158 { | 1153 { |
| 1159 if (ShadowRoot* root = containingShadowRoot()) | 1154 if (ShadowRoot* root = containingShadowRoot()) |
| (...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2558 node->showTreeForThis(); | 2553 node->showTreeForThis(); |
| 2559 } | 2554 } |
| 2560 | 2555 |
| 2561 void showNodePath(const WebCore::Node* node) | 2556 void showNodePath(const WebCore::Node* node) |
| 2562 { | 2557 { |
| 2563 if (node) | 2558 if (node) |
| 2564 node->showNodePathForThis(); | 2559 node->showNodePathForThis(); |
| 2565 } | 2560 } |
| 2566 | 2561 |
| 2567 #endif | 2562 #endif |
| OLD | NEW |