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

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

Issue 170873004: Fix issue in which removing a class does not always invalidate style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed bug - was not clearing the NeedsStyleInvalidation bit correctly. Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/RuleFeature.cpp ('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, 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib utionRecalc); } 364 bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistrib utionRecalc); }
365 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca lc); } 365 void setChildNeedsDistributionRecalc() { setFlag(ChildNeedsDistributionReca lc); }
366 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution Recalc); } 366 void clearChildNeedsDistributionRecalc() { clearFlag(ChildNeedsDistribution Recalc); }
367 void markAncestorsWithChildNeedsDistributionRecalc(); 367 void markAncestorsWithChildNeedsDistributionRecalc();
368 368
369 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv alidation); } 369 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv alidation); }
370 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation ); } 370 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation ); }
371 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida tion); } 371 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida tion); }
372 void markAncestorsWithChildNeedsStyleInvalidation(); 372 void markAncestorsWithChildNeedsStyleInvalidation();
373 bool needsStyleInvalidation() { return getFlag(NeedsStyleInvalidation); } 373 bool needsStyleInvalidation() { return getFlag(NeedsStyleInvalidation); }
374 void clearNeedsStyleInvalidation() { clearFlag(NeedsStyleInvalidation); }
374 void setNeedsStyleInvalidation(); 375 void setNeedsStyleInvalidation();
375 376
376 void recalcDistribution(); 377 void recalcDistribution();
377 378
378 bool shouldNotifyRendererWithIdenticalStyles() const { return getFlag(Notify RendererWithIdenticalStyles); } 379 bool shouldNotifyRendererWithIdenticalStyles() const { return getFlag(Notify RendererWithIdenticalStyles); }
379 380
380 void setIsLink(bool f); 381 void setIsLink(bool f);
381 382
382 bool hasScopedHTMLStyleChild() const { return getFlag(HasScopedHTMLStyleChil dFlag); } 383 bool hasScopedHTMLStyleChild() const { return getFlag(HasScopedHTMLStyleChil dFlag); }
383 void setHasScopedHTMLStyleChild(bool flag) { setFlag(flag, HasScopedHTMLStyl eChildFlag); } 384 void setHasScopedHTMLStyleChild(bool flag) { setFlag(flag, HasScopedHTMLStyl eChildFlag); }
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 907
907 } // namespace WebCore 908 } // namespace WebCore
908 909
909 #ifndef NDEBUG 910 #ifndef NDEBUG
910 // Outside the WebCore namespace for ease of invocation from gdb. 911 // Outside the WebCore namespace for ease of invocation from gdb.
911 void showTree(const WebCore::Node*); 912 void showTree(const WebCore::Node*);
912 void showNodePath(const WebCore::Node*); 913 void showNodePath(const WebCore::Node*);
913 #endif 914 #endif
914 915
915 #endif 916 #endif
OLDNEW
« no previous file with comments | « Source/core/css/RuleFeature.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698