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