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

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

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/Element.cpp ('k') | Source/core/dom/Node.cpp » ('j') | 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, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 StyleChangeType styleChangeType() const { return static_cast<StyleChangeType >(m_nodeFlags & StyleChangeMask); } 371 StyleChangeType styleChangeType() const { return static_cast<StyleChangeType >(m_nodeFlags & StyleChangeMask); }
372 bool childNeedsStyleRecalc() const { return getFlag(ChildNeedsStyleRecalcFla g); } 372 bool childNeedsStyleRecalc() const { return getFlag(ChildNeedsStyleRecalcFla g); }
373 bool isLink() const { return getFlag(IsLinkFlag); } 373 bool isLink() const { return getFlag(IsLinkFlag); }
374 bool isEditingText() const { return isTextNode() && getFlag(HasNameOrIsEditi ngTextFlag); } 374 bool isEditingText() const { return isTextNode() && getFlag(HasNameOrIsEditi ngTextFlag); }
375 375
376 void setHasName(bool f) { ASSERT(!isTextNode()); setFlag(f, HasNameOrIsEditi ngTextFlag); } 376 void setHasName(bool f) { ASSERT(!isTextNode()); setFlag(f, HasNameOrIsEditi ngTextFlag); }
377 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); } 377 void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); }
378 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); } 378 void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); }
379 379
380 void setNeedsStyleRecalc(StyleChangeType = SubtreeStyleChange, StyleChangeSo urce = StyleChangeFromCSS); 380 void setNeedsStyleRecalc(StyleChangeType = SubtreeStyleChange, StyleChangeSo urce = StyleChangeFromCSS);
381 void clearNeedsStyleRecalc() 381 void clearNeedsStyleRecalc();
382 {
383 m_nodeFlags &= ~StyleChangeMask;
384 clearFlag(NotifyRendererWithIdenticalStyles);
385 }
386 382
387 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib utionRecalc); } 383 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib utionRecalc); }
388 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca lc); } 384 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca lc); }
389 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution Recalc); } 385 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution Recalc); }
390 void markAncestorsWithChildNeedsDistributionRecalc(); 386 void markAncestorsWithChildNeedsDistributionRecalc();
391 387
392 void recalcDistribution(); 388 void recalcDistribution();
393 389
394 bool shouldNotifyRendererWithIdenticalStyles() const { return getFlag(Notify RendererWithIdenticalStyles); } 390 bool shouldNotifyRendererWithIdenticalStyles() const { return getFlag(Notify RendererWithIdenticalStyles); }
395 391
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 948
953 } // namespace WebCore 949 } // namespace WebCore
954 950
955 #ifndef NDEBUG 951 #ifndef NDEBUG
956 // Outside the WebCore namespace for ease of invocation from gdb. 952 // Outside the WebCore namespace for ease of invocation from gdb.
957 void showTree(const WebCore::Node*); 953 void showTree(const WebCore::Node*);
958 void showNodePath(const WebCore::Node*); 954 void showNodePath(const WebCore::Node*);
959 #endif 955 #endif
960 956
961 #endif 957 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698