Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2251073002: CSS: SVG use elements replicate updates to style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #include "core/frame/LocalDOMWindow.h" 82 #include "core/frame/LocalDOMWindow.h"
83 #include "core/frame/LocalFrame.h" 83 #include "core/frame/LocalFrame.h"
84 #include "core/html/HTMLDialogElement.h" 84 #include "core/html/HTMLDialogElement.h"
85 #include "core/html/HTMLFrameOwnerElement.h" 85 #include "core/html/HTMLFrameOwnerElement.h"
86 #include "core/html/HTMLSlotElement.h" 86 #include "core/html/HTMLSlotElement.h"
87 #include "core/input/EventHandler.h" 87 #include "core/input/EventHandler.h"
88 #include "core/inspector/InstanceCounters.h" 88 #include "core/inspector/InstanceCounters.h"
89 #include "core/layout/LayoutBox.h" 89 #include "core/layout/LayoutBox.h"
90 #include "core/page/ContextMenuController.h" 90 #include "core/page/ContextMenuController.h"
91 #include "core/page/Page.h" 91 #include "core/page/Page.h"
92 #include "core/svg/SVGElement.h"
92 #include "core/svg/graphics/SVGImage.h" 93 #include "core/svg/graphics/SVGImage.h"
93 #include "platform/EventDispatchForbiddenScope.h" 94 #include "platform/EventDispatchForbiddenScope.h"
94 #include "platform/RuntimeEnabledFeatures.h" 95 #include "platform/RuntimeEnabledFeatures.h"
95 #include "platform/TraceEvent.h" 96 #include "platform/TraceEvent.h"
96 #include "platform/TracedValue.h" 97 #include "platform/TracedValue.h"
97 #include "wtf/HashSet.h" 98 #include "wtf/HashSet.h"
98 #include "wtf/Vector.h" 99 #include "wtf/Vector.h"
99 #include "wtf/allocator/Partitions.h" 100 #include "wtf/allocator/Partitions.h"
100 #include "wtf/text/CString.h" 101 #include "wtf/text/CString.h"
101 #include "wtf/text/StringBuilder.h" 102 #include "wtf/text/StringBuilder.h"
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 699
699 StyleChangeType existingChangeType = getStyleChangeType(); 700 StyleChangeType existingChangeType = getStyleChangeType();
700 if (changeType > existingChangeType) 701 if (changeType > existingChangeType)
701 setStyleChange(changeType); 702 setStyleChange(changeType);
702 703
703 if (existingChangeType == NoStyleChange) 704 if (existingChangeType == NoStyleChange)
704 markAncestorsWithChildNeedsStyleRecalc(); 705 markAncestorsWithChildNeedsStyleRecalc();
705 706
706 if (isElementNode() && hasRareData()) 707 if (isElementNode() && hasRareData())
707 toElement(*this).setAnimationStyleChange(false); 708 toElement(*this).setAnimationStyleChange(false);
709
710 if (isSVGElement())
711 toSVGElement(this)->setNeedsStyleRecalcForInstances(changeType, reason);
708 } 712 }
709 713
710 void Node::clearNeedsStyleRecalc() 714 void Node::clearNeedsStyleRecalc()
711 { 715 {
712 m_nodeFlags &= ~StyleChangeMask; 716 m_nodeFlags &= ~StyleChangeMask;
713 717
714 clearSVGFilterNeedsLayerUpdate(); 718 clearSVGFilterNeedsLayerUpdate();
715 719
716 if (isElementNode() && hasRareData()) 720 if (isElementNode() && hasRareData())
717 toElement(*this).setAnimationStyleChange(false); 721 toElement(*this).setAnimationStyleChange(false);
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after
2396 2400
2397 void showNodePath(const blink::Node* node) 2401 void showNodePath(const blink::Node* node)
2398 { 2402 {
2399 if (node) 2403 if (node)
2400 node->showNodePathForThis(); 2404 node->showNodePathForThis();
2401 else 2405 else
2402 fprintf(stderr, "Cannot showNodePath for (nil)\n"); 2406 fprintf(stderr, "Cannot showNodePath for (nil)\n");
2403 } 2407 }
2404 2408
2405 #endif 2409 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698