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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 setFlag(NotifyRendererWithIdenticalStyles); | 727 setFlag(NotifyRendererWithIdenticalStyles); |
728 | 728 |
729 StyleChangeType existingChangeType = styleChangeType(); | 729 StyleChangeType existingChangeType = styleChangeType(); |
730 if (changeType > existingChangeType) | 730 if (changeType > existingChangeType) |
731 setStyleChange(changeType); | 731 setStyleChange(changeType); |
732 | 732 |
733 if (existingChangeType == NoStyleChange) | 733 if (existingChangeType == NoStyleChange) |
734 markAncestorsWithChildNeedsStyleRecalc(); | 734 markAncestorsWithChildNeedsStyleRecalc(); |
735 } | 735 } |
736 | 736 |
| 737 bool Node::inActiveDocument() const |
| 738 { |
| 739 return inDocument() && document().isActive(); |
| 740 } |
| 741 |
737 void Node::lazyAttach() | 742 void Node::lazyAttach() |
738 { | 743 { |
739 markAncestorsWithChildNeedsStyleRecalc(); | 744 markAncestorsWithChildNeedsStyleRecalc(); |
740 for (Node* node = this; node; node = NodeTraversal::next(node, this)) { | 745 for (Node* node = this; node; node = NodeTraversal::next(node, this)) { |
741 node->setAttached(); | 746 node->setAttached(); |
742 node->setStyleChange(NeedsReattachStyleChange); | 747 node->setStyleChange(NeedsReattachStyleChange); |
743 if (node->isContainerNode()) | 748 if (node->isContainerNode()) |
744 node->setChildNeedsStyleRecalc(); | 749 node->setChildNeedsStyleRecalc(); |
745 for (ShadowRoot* root = node->youngestShadowRoot(); root; root = root->o
lderShadowRoot()) | 750 for (ShadowRoot* root = node->youngestShadowRoot(); root; root = root->o
lderShadowRoot()) |
746 root->lazyAttach(); | 751 root->lazyAttach(); |
(...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2625 node->showTreeForThis(); | 2630 node->showTreeForThis(); |
2626 } | 2631 } |
2627 | 2632 |
2628 void showNodePath(const WebCore::Node* node) | 2633 void showNodePath(const WebCore::Node* node) |
2629 { | 2634 { |
2630 if (node) | 2635 if (node) |
2631 node->showNodePathForThis(); | 2636 node->showNodePathForThis(); |
2632 } | 2637 } |
2633 | 2638 |
2634 #endif | 2639 #endif |
OLD | NEW |