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

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

Issue 1328013002: Add early out back to Node::updateDistribution(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: do it right. Created 5 years, 3 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 | « no previous file | 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-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 377
378 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv alidationFlag); } 378 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv alidationFlag); }
379 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation Flag); } 379 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation Flag); }
380 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida tionFlag); } 380 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida tionFlag); }
381 void markAncestorsWithChildNeedsStyleInvalidation(); 381 void markAncestorsWithChildNeedsStyleInvalidation();
382 bool needsStyleInvalidation() const { return getFlag(NeedsStyleInvalidationF lag); } 382 bool needsStyleInvalidation() const { return getFlag(NeedsStyleInvalidationF lag); }
383 void clearNeedsStyleInvalidation() { clearFlag(NeedsStyleInvalidationFlag); } 383 void clearNeedsStyleInvalidation() { clearFlag(NeedsStyleInvalidationFlag); }
384 void setNeedsStyleInvalidation(); 384 void setNeedsStyleInvalidation();
385 385
386 void updateDistribution(); 386 void updateDistribution();
387 void recalcDistribution();
388 387
389 bool svgFilterNeedsLayerUpdate() const { return getFlag(SVGFilterNeedsLayerU pdateFlag); } 388 bool svgFilterNeedsLayerUpdate() const { return getFlag(SVGFilterNeedsLayerU pdateFlag); }
390 void setSVGFilterNeedsLayerUpdate() { setFlag(SVGFilterNeedsLayerUpdateFlag) ; } 389 void setSVGFilterNeedsLayerUpdate() { setFlag(SVGFilterNeedsLayerUpdateFlag) ; }
391 void clearSVGFilterNeedsLayerUpdate() { clearFlag(SVGFilterNeedsLayerUpdateF lag); } 390 void clearSVGFilterNeedsLayerUpdate() { clearFlag(SVGFilterNeedsLayerUpdateF lag); }
392 391
393 void setIsLink(bool f); 392 void setIsLink(bool f);
394 393
395 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); } 394 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); }
396 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag ); } 395 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag ); }
397 396
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 791
793 enum EditableLevel { Editable, RichlyEditable }; 792 enum EditableLevel { Editable, RichlyEditable };
794 bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllI sAlwaysNonEditable) const; 793 bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllI sAlwaysNonEditable) const;
795 bool isEditableToAccessibility(EditableLevel) const; 794 bool isEditableToAccessibility(EditableLevel) const;
796 795
797 bool isUserActionElementActive() const; 796 bool isUserActionElementActive() const;
798 bool isUserActionElementInActiveChain() const; 797 bool isUserActionElementInActiveChain() const;
799 bool isUserActionElementHovered() const; 798 bool isUserActionElementHovered() const;
800 bool isUserActionElementFocused() const; 799 bool isUserActionElementFocused() const;
801 800
801 void recalcDistribution();
802
802 void setStyleChange(StyleChangeType); 803 void setStyleChange(StyleChangeType);
803 804
804 virtual ComputedStyle* nonLayoutObjectComputedStyle() const { return nullptr ; } 805 virtual ComputedStyle* nonLayoutObjectComputedStyle() const { return nullptr ; }
805 806
806 virtual const ComputedStyle* virtualEnsureComputedStyle(PseudoId = NOPSEUDO) ; 807 virtual const ComputedStyle* virtualEnsureComputedStyle(PseudoId = NOPSEUDO) ;
807 808
808 void trackForDebugging(); 809 void trackForDebugging();
809 810
810 WillBeHeapVector<OwnPtrWillBeMember<MutationObserverRegistration>>* mutation ObserverRegistry(); 811 WillBeHeapVector<OwnPtrWillBeMember<MutationObserverRegistration>>* mutation ObserverRegistry();
811 WillBeHeapHashSet<RawPtrWillBeMember<MutationObserverRegistration>>* transie ntMutationObserverRegistry(); 812 WillBeHeapHashSet<RawPtrWillBeMember<MutationObserverRegistration>>* transie ntMutationObserverRegistry();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 } // namespace blink 906 } // namespace blink
906 907
907 #ifndef NDEBUG 908 #ifndef NDEBUG
908 // Outside the WebCore namespace for ease of invocation from gdb. 909 // Outside the WebCore namespace for ease of invocation from gdb.
909 void showNode(const blink::Node*); 910 void showNode(const blink::Node*);
910 void showTree(const blink::Node*); 911 void showTree(const blink::Node*);
911 void showNodePath(const blink::Node*); 912 void showNodePath(const blink::Node*);
912 #endif 913 #endif
913 914
914 #endif // Node_h 915 #endif // Node_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698