| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 #include <wtf/text/StringBuilder.h> | 121 #include <wtf/text/StringBuilder.h> |
| 122 | 122 |
| 123 #ifndef NDEBUG | 123 #ifndef NDEBUG |
| 124 #include "RenderLayer.h" | 124 #include "RenderLayer.h" |
| 125 #endif | 125 #endif |
| 126 | 126 |
| 127 #if ENABLE(GESTURE_EVENTS) | 127 #if ENABLE(GESTURE_EVENTS) |
| 128 #include "GestureEvent.h" | 128 #include "GestureEvent.h" |
| 129 #endif | 129 #endif |
| 130 | 130 |
| 131 #if ENABLE(INSPECTOR) | |
| 132 #include "InspectorController.h" | 131 #include "InspectorController.h" |
| 133 #endif | |
| 134 | 132 |
| 135 #if USE(JSC) | 133 #if USE(JSC) |
| 136 #include <runtime/JSGlobalData.h> | 134 #include <runtime/JSGlobalData.h> |
| 137 #include <runtime/Operations.h> | 135 #include <runtime/Operations.h> |
| 138 #endif | 136 #endif |
| 139 | 137 |
| 140 #if ENABLE(MICRODATA) | 138 #if ENABLE(MICRODATA) |
| 141 #include "HTMLPropertiesCollection.h" | 139 #include "HTMLPropertiesCollection.h" |
| 142 #include "PropertyNodeList.h" | 140 #include "PropertyNodeList.h" |
| 143 #endif | 141 #endif |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 } | 670 } |
| 673 | 671 |
| 674 bool Node::isContentRichlyEditable() | 672 bool Node::isContentRichlyEditable() |
| 675 { | 673 { |
| 676 document()->updateStyleIfNeeded(); | 674 document()->updateStyleIfNeeded(); |
| 677 return rendererIsEditable(RichlyEditable, UserSelectAllIsAlwaysNonEditable); | 675 return rendererIsEditable(RichlyEditable, UserSelectAllIsAlwaysNonEditable); |
| 678 } | 676 } |
| 679 | 677 |
| 680 void Node::inspect() | 678 void Node::inspect() |
| 681 { | 679 { |
| 682 #if ENABLE(INSPECTOR) | |
| 683 if (document() && document()->page()) | 680 if (document() && document()->page()) |
| 684 document()->page()->inspectorController()->inspect(this); | 681 document()->page()->inspectorController()->inspect(this); |
| 685 #endif | |
| 686 } | 682 } |
| 687 | 683 |
| 688 bool Node::rendererIsEditable(EditableLevel editableLevel, UserSelectAllTreatmen
t treatment) const | 684 bool Node::rendererIsEditable(EditableLevel editableLevel, UserSelectAllTreatmen
t treatment) const |
| 689 { | 685 { |
| 690 if (document()->frame() && document()->frame()->page() && document()->frame(
)->page()->isEditable() && !containingShadowRoot()) | 686 if (document()->frame() && document()->frame()->page() && document()->frame(
)->page()->isEditable() && !containingShadowRoot()) |
| 691 return true; | 687 return true; |
| 692 | 688 |
| 693 if (isPseudoElement()) | 689 if (isPseudoElement()) |
| 694 return false; | 690 return false; |
| 695 | 691 |
| (...skipping 2062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2758 node->showTreeForThis(); | 2754 node->showTreeForThis(); |
| 2759 } | 2755 } |
| 2760 | 2756 |
| 2761 void showNodePath(const WebCore::Node* node) | 2757 void showNodePath(const WebCore::Node* node) |
| 2762 { | 2758 { |
| 2763 if (node) | 2759 if (node) |
| 2764 node->showNodePathForThis(); | 2760 node->showNodePathForThis(); |
| 2765 } | 2761 } |
| 2766 | 2762 |
| 2767 #endif | 2763 #endif |
| OLD | NEW |