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