| 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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 return toElement(parent); | 1159 return toElement(parent); |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 ContainerNode* Node::parentOrShadowHostOrTemplateHostNode() const | 1162 ContainerNode* Node::parentOrShadowHostOrTemplateHostNode() const |
| 1163 { | 1163 { |
| 1164 if (isDocumentFragment() && toDocumentFragment(this)->isTemplateContent()) | 1164 if (isDocumentFragment() && toDocumentFragment(this)->isTemplateContent()) |
| 1165 return static_cast<const TemplateContentDocumentFragment*>(this)->host()
; | 1165 return static_cast<const TemplateContentDocumentFragment*>(this)->host()
; |
| 1166 return parentOrShadowHostNode(); | 1166 return parentOrShadowHostNode(); |
| 1167 } | 1167 } |
| 1168 | 1168 |
| 1169 bool Node::isBlockFlowElement() const | |
| 1170 { | |
| 1171 return isElementNode() && renderer() && renderer()->isRenderBlockFlow(); | |
| 1172 } | |
| 1173 | |
| 1174 bool Node::isRootEditableElement() const | 1169 bool Node::isRootEditableElement() const |
| 1175 { | 1170 { |
| 1176 return hasEditableStyle() && isElementNode() && (!parentNode() || !parentNod
e()->hasEditableStyle() | 1171 return hasEditableStyle() && isElementNode() && (!parentNode() || !parentNod
e()->hasEditableStyle() |
| 1177 || !parentNode()->isElementNode() || isHTMLBodyElement((*this))); | 1172 || !parentNode()->isElementNode() || isHTMLBodyElement((*this))); |
| 1178 } | 1173 } |
| 1179 | 1174 |
| 1180 Element* Node::rootEditableElement(EditableType editableType) const | 1175 Element* Node::rootEditableElement(EditableType editableType) const |
| 1181 { | 1176 { |
| 1182 if (editableType == HasEditableAXRole) { | 1177 if (editableType == HasEditableAXRole) { |
| 1183 if (AXObjectCache* cache = document().existingAXObjectCache()) | 1178 if (AXObjectCache* cache = document().existingAXObjectCache()) |
| (...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2492 node->showTreeForThis(); | 2487 node->showTreeForThis(); |
| 2493 } | 2488 } |
| 2494 | 2489 |
| 2495 void showNodePath(const blink::Node* node) | 2490 void showNodePath(const blink::Node* node) |
| 2496 { | 2491 { |
| 2497 if (node) | 2492 if (node) |
| 2498 node->showNodePathForThis(); | 2493 node->showNodePathForThis(); |
| 2499 } | 2494 } |
| 2500 | 2495 |
| 2501 #endif | 2496 #endif |
| OLD | NEW |