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

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

Issue 110123005: Web Animations CSS: Record if style recalc is for animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Ignore new interrupted immediately test when testing legacy animations engine Created 7 years 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
« no previous file with comments | « Source/core/dom/Node.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 783
784 StyleChangeType existingChangeType = styleChangeType(); 784 StyleChangeType existingChangeType = styleChangeType();
785 if (changeType > existingChangeType) { 785 if (changeType > existingChangeType) {
786 setStyleChange(changeType); 786 setStyleChange(changeType);
787 if (changeType >= SubtreeStyleChange) 787 if (changeType >= SubtreeStyleChange)
788 traceStyleChangeIfNeeded(changeType); 788 traceStyleChangeIfNeeded(changeType);
789 } 789 }
790 790
791 if (existingChangeType == NoStyleChange) 791 if (existingChangeType == NoStyleChange)
792 markAncestorsWithChildNeedsStyleRecalc(); 792 markAncestorsWithChildNeedsStyleRecalc();
793
794 if (isElementNode() && hasRareData())
795 toElement(*this).setAnimationStyleChange(false);
796 }
797
798 void Node::clearNeedsStyleRecalc()
799 {
800 m_nodeFlags &= ~StyleChangeMask;
801 clearFlag(NotifyRendererWithIdenticalStyles);
802
803 if (isElementNode() && hasRareData())
804 toElement(*this).setAnimationStyleChange(false);
793 } 805 }
794 806
795 bool Node::inActiveDocument() const 807 bool Node::inActiveDocument() const
796 { 808 {
797 return inDocument() && document().isActive(); 809 return inDocument() && document().isActive();
798 } 810 }
799 811
800 Node* Node::focusDelegate() 812 Node* Node::focusDelegate()
801 { 813 {
802 return this; 814 return this;
(...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after
2725 node->showTreeForThis(); 2737 node->showTreeForThis();
2726 } 2738 }
2727 2739
2728 void showNodePath(const WebCore::Node* node) 2740 void showNodePath(const WebCore::Node* node)
2729 { 2741 {
2730 if (node) 2742 if (node)
2731 node->showNodePathForThis(); 2743 node->showNodePathForThis();
2732 } 2744 }
2733 2745
2734 #endif 2746 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698