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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 clearChildNeedsDistributionRecalc(); | 675 clearChildNeedsDistributionRecalc(); |
676 } | 676 } |
677 | 677 |
678 void Node::setIsLink(bool isLink) | 678 void Node::setIsLink(bool isLink) |
679 { | 679 { |
680 setFlag(isLink && !SVGImage::isInSVGImage(toElement(this)), IsLinkFlag); | 680 setFlag(isLink && !SVGImage::isInSVGImage(toElement(this)), IsLinkFlag); |
681 } | 681 } |
682 | 682 |
683 void Node::setNeedsStyleInvalidation() | 683 void Node::setNeedsStyleInvalidation() |
684 { | 684 { |
685 DCHECK(isElementNode()); | 685 DCHECK(isElementNode() || isShadowRoot()); |
686 setFlag(NeedsStyleInvalidationFlag); | 686 setFlag(NeedsStyleInvalidationFlag); |
687 markAncestorsWithChildNeedsStyleInvalidation(); | 687 markAncestorsWithChildNeedsStyleInvalidation(); |
688 } | 688 } |
689 | 689 |
690 void Node::markAncestorsWithChildNeedsStyleInvalidation() | 690 void Node::markAncestorsWithChildNeedsStyleInvalidation() |
691 { | 691 { |
692 ScriptForbiddenScope forbidScriptDuringRawIteration; | 692 ScriptForbiddenScope forbidScriptDuringRawIteration; |
693 for (Node* node = parentOrShadowHostNode(); node && !node->childNeedsStyleIn
validation(); node = node->parentOrShadowHostNode()) | 693 for (Node* node = parentOrShadowHostNode(); node && !node->childNeedsStyleIn
validation(); node = node->parentOrShadowHostNode()) |
694 node->setChildNeedsStyleInvalidation(); | 694 node->setChildNeedsStyleInvalidation(); |
695 document().scheduleLayoutTreeUpdateIfNeeded(); | 695 document().scheduleLayoutTreeUpdateIfNeeded(); |
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2483 | 2483 |
2484 void showNodePath(const blink::Node* node) | 2484 void showNodePath(const blink::Node* node) |
2485 { | 2485 { |
2486 if (node) | 2486 if (node) |
2487 node->showNodePathForThis(); | 2487 node->showNodePathForThis(); |
2488 else | 2488 else |
2489 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2489 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
2490 } | 2490 } |
2491 | 2491 |
2492 #endif | 2492 #endif |
OLD | NEW |