| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #include "core/dom/TextEvent.h" | 64 #include "core/dom/TextEvent.h" |
| 65 #include "core/dom/TouchEvent.h" | 65 #include "core/dom/TouchEvent.h" |
| 66 #include "core/dom/TreeScopeAdopter.h" | 66 #include "core/dom/TreeScopeAdopter.h" |
| 67 #include "core/dom/UIEvent.h" | 67 #include "core/dom/UIEvent.h" |
| 68 #include "core/dom/UserActionElementSet.h" | 68 #include "core/dom/UserActionElementSet.h" |
| 69 #include "core/dom/WheelEvent.h" | 69 #include "core/dom/WheelEvent.h" |
| 70 #include "core/dom/shadow/ElementShadow.h" | 70 #include "core/dom/shadow/ElementShadow.h" |
| 71 #include "core/dom/shadow/InsertionPoint.h" | 71 #include "core/dom/shadow/InsertionPoint.h" |
| 72 #include "core/dom/shadow/ShadowRoot.h" | 72 #include "core/dom/shadow/ShadowRoot.h" |
| 73 #include "core/editing/htmlediting.h" | 73 #include "core/editing/htmlediting.h" |
| 74 #include "core/html/HTMLAnchorElement.h" |
| 74 #include "core/html/HTMLFrameOwnerElement.h" | 75 #include "core/html/HTMLFrameOwnerElement.h" |
| 75 #include "core/html/HTMLStyleElement.h" | 76 #include "core/html/HTMLStyleElement.h" |
| 76 #include "core/html/RadioNodeList.h" | 77 #include "core/html/RadioNodeList.h" |
| 77 #include "core/inspector/InspectorCounters.h" | 78 #include "core/inspector/InspectorCounters.h" |
| 78 #include "core/page/ContextMenuController.h" | 79 #include "core/page/ContextMenuController.h" |
| 79 #include "core/page/EventHandler.h" | 80 #include "core/page/EventHandler.h" |
| 80 #include "core/page/Frame.h" | 81 #include "core/page/Frame.h" |
| 81 #include "core/page/Page.h" | 82 #include "core/page/Page.h" |
| 82 #include "core/page/Settings.h" | 83 #include "core/page/Settings.h" |
| 83 #include "core/platform/Partitions.h" | 84 #include "core/platform/Partitions.h" |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 } | 776 } |
| 776 | 777 |
| 777 for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadow
Root()) { | 778 for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadow
Root()) { |
| 778 if (root->childNeedsDistributionRecalc()) | 779 if (root->childNeedsDistributionRecalc()) |
| 779 root->recalcDistribution(); | 780 root->recalcDistribution(); |
| 780 } | 781 } |
| 781 | 782 |
| 782 clearChildNeedsDistributionRecalc(); | 783 clearChildNeedsDistributionRecalc(); |
| 783 } | 784 } |
| 784 | 785 |
| 786 void Node::setIsLink(bool isLink) |
| 787 { |
| 788 ASSERT(!isLink || !mustProhibitLinks(toElement(this))); |
| 789 setFlag(isLink, IsLinkFlag); |
| 790 } |
| 791 |
| 785 void Node::markAncestorsWithChildNeedsDistributionRecalc() | 792 void Node::markAncestorsWithChildNeedsDistributionRecalc() |
| 786 { | 793 { |
| 787 for (Node* node = this; node && !node->childNeedsDistributionRecalc(); node
= node->parentOrShadowHostNode()) | 794 for (Node* node = this; node && !node->childNeedsDistributionRecalc(); node
= node->parentOrShadowHostNode()) |
| 788 node->setChildNeedsDistributionRecalc(); | 795 node->setChildNeedsDistributionRecalc(); |
| 789 if (document()->childNeedsDistributionRecalc()) | 796 if (document()->childNeedsDistributionRecalc()) |
| 790 document()->scheduleStyleRecalc(); | 797 document()->scheduleStyleRecalc(); |
| 791 } | 798 } |
| 792 | 799 |
| 793 inline void Node::setStyleChange(StyleChangeType changeType) | 800 inline void Node::setStyleChange(StyleChangeType changeType) |
| 794 { | 801 { |
| (...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2762 node->showTreeForThis(); | 2769 node->showTreeForThis(); |
| 2763 } | 2770 } |
| 2764 | 2771 |
| 2765 void showNodePath(const WebCore::Node* node) | 2772 void showNodePath(const WebCore::Node* node) |
| 2766 { | 2773 { |
| 2767 if (node) | 2774 if (node) |
| 2768 node->showNodePathForThis(); | 2775 node->showNodePathForThis(); |
| 2769 } | 2776 } |
| 2770 | 2777 |
| 2771 #endif | 2778 #endif |
| OLD | NEW |