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

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

Issue 423823004: Add support for SVG Clip paths in HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unwanted code from RenderLayerClipPathInfo.* and Renderlayer.cpp and Renamed filters to svg… Created 6 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-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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv alidationFlag); } 374 bool childNeedsStyleInvalidation() const { return getFlag(ChildNeedsStyleInv alidationFlag); }
375 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation Flag); } 375 void setChildNeedsStyleInvalidation() { setFlag(ChildNeedsStyleInvalidation Flag); }
376 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida tionFlag); } 376 void clearChildNeedsStyleInvalidation() { clearFlag(ChildNeedsStyleInvalida tionFlag); }
377 void markAncestorsWithChildNeedsStyleInvalidation(); 377 void markAncestorsWithChildNeedsStyleInvalidation();
378 bool needsStyleInvalidation() const { return getFlag(NeedsStyleInvalidationF lag); } 378 bool needsStyleInvalidation() const { return getFlag(NeedsStyleInvalidationF lag); }
379 void clearNeedsStyleInvalidation() { clearFlag(NeedsStyleInvalidationFlag); } 379 void clearNeedsStyleInvalidation() { clearFlag(NeedsStyleInvalidationFlag); }
380 void setNeedsStyleInvalidation(); 380 void setNeedsStyleInvalidation();
381 381
382 void recalcDistribution(); 382 void recalcDistribution();
383 383
384 bool svgFilterNeedsLayerUpdate() const { return getFlag(SVGFilterNeedsLayerU pdateFlag); } 384 bool svgEffectsNeedsLayerUpdate() const { return getFlag(SVGEffectsNeedsLaye rUpdateFlag); }
385 void setSVGFilterNeedsLayerUpdate() { setFlag(SVGFilterNeedsLayerUpdateFlag) ; } 385 void setSVGEffectsNeedsLayerUpdate() { setFlag(SVGEffectsNeedsLayerUpdateFla g); }
386 void clearSVGFilterNeedsLayerUpdate() { clearFlag(SVGFilterNeedsLayerUpdateF lag); } 386 void clearSVGEffectsNeedsLayerUpdate() { clearFlag(SVGEffectsNeedsLayerUpdat eFlag); }
387 387
388 void setIsLink(bool f); 388 void setIsLink(bool f);
389 389
390 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); } 390 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); }
391 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag ); } 391 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag ); }
392 392
393 bool isV8CollectableDuringMinorGC() const { return getFlag(V8CollectableDuri ngMinorGCFlag); } 393 bool isV8CollectableDuringMinorGC() const { return getFlag(V8CollectableDuri ngMinorGCFlag); }
394 void markV8CollectableDuringMinorGC() { setFlag(true, V8CollectableDuringMin orGCFlag); } 394 void markV8CollectableDuringMinorGC() { setFlag(true, V8CollectableDuringMin orGCFlag); }
395 void clearV8CollectableDuringMinorGC() { setFlag(false, V8CollectableDuringM inorGCFlag); } 395 void clearV8CollectableDuringMinorGC() { setFlag(false, V8CollectableDuringM inorGCFlag); }
396 396
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 700
701 // Tree state flags. These change when the element is added/removed 701 // Tree state flags. These change when the element is added/removed
702 // from a DOM tree. 702 // from a DOM tree.
703 InDocumentFlag = 1 << 10, 703 InDocumentFlag = 1 << 10,
704 IsInShadowTreeFlag = 1 << 11, 704 IsInShadowTreeFlag = 1 << 11,
705 705
706 // Set by the parser when the children are done parsing. 706 // Set by the parser when the children are done parsing.
707 IsFinishedParsingChildrenFlag = 1 << 12, 707 IsFinishedParsingChildrenFlag = 1 << 12,
708 708
709 // Flags related to recalcStyle. 709 // Flags related to recalcStyle.
710 SVGFilterNeedsLayerUpdateFlag = 1 << 13, 710 SVGEffectsNeedsLayerUpdateFlag = 1 << 13,
f(malita) 2014/08/05 14:13:07 "SVGEffectsNeedLayerUpdateFlag" (subj-verb agreeme
Shanmuga Pandi 2014/08/06 14:51:34 Done.
711 HasCustomStyleCallbacksFlag = 1 << 14, 711 HasCustomStyleCallbacksFlag = 1 << 14,
712 ChildNeedsStyleInvalidationFlag = 1 << 15, 712 ChildNeedsStyleInvalidationFlag = 1 << 15,
713 NeedsStyleInvalidationFlag = 1 << 16, 713 NeedsStyleInvalidationFlag = 1 << 16,
714 ChildNeedsDistributionRecalcFlag = 1 << 17, 714 ChildNeedsDistributionRecalcFlag = 1 << 17,
715 ChildNeedsStyleRecalcFlag = 1 << 18, 715 ChildNeedsStyleRecalcFlag = 1 << 18,
716 StyleChangeMask = 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift + 1), 716 StyleChangeMask = 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift + 1),
717
718 CustomElementFlag = 1 << 21, 717 CustomElementFlag = 1 << 21,
719 CustomElementUpgradedFlag = 1 << 22, 718 CustomElementUpgradedFlag = 1 << 22,
720
721 HasNameOrIsEditingTextFlag = 1 << 23, 719 HasNameOrIsEditingTextFlag = 1 << 23,
722 HasWeakReferencesFlag = 1 << 24, 720 HasWeakReferencesFlag = 1 << 24,
723 V8CollectableDuringMinorGCFlag = 1 << 25, 721 V8CollectableDuringMinorGCFlag = 1 << 25,
724 HasSyntheticAttrChildNodesFlag = 1 << 26, 722 HasSyntheticAttrChildNodesFlag = 1 << 26,
725 HasEventTargetDataFlag = 1 << 27, 723 HasEventTargetDataFlag = 1 << 27,
726 AlreadySpellCheckedFlag = 1 << 28, 724 AlreadySpellCheckedFlag = 1 << 28,
727 725
728 // HTML dir=auto. 726 // HTML dir=auto.
729 SelfOrAncestorHasDirAutoFlag = 1 << 29, 727 SelfOrAncestorHasDirAutoFlag = 1 << 29,
730
731 DefaultNodeFlags = IsFinishedParsingChildrenFlag | ChildNeedsStyleRecalc Flag | NeedsReattachStyleChange 728 DefaultNodeFlags = IsFinishedParsingChildrenFlag | ChildNeedsStyleRecalc Flag | NeedsReattachStyleChange
732 }; 729 };
733 730
734 // 2 bits remaining. 731 // 2 bits remaining.
735 732
736 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } 733 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; }
737 void setFlag(bool f, NodeFlags mask) { m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); } 734 void setFlag(bool f, NodeFlags mask) { m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); }
738 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } 735 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; }
739 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } 736 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; }
740 737
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 } // namespace blink 905 } // namespace blink
909 906
910 #ifndef NDEBUG 907 #ifndef NDEBUG
911 // Outside the WebCore namespace for ease of invocation from gdb. 908 // Outside the WebCore namespace for ease of invocation from gdb.
912 void showNode(const blink::Node*); 909 void showNode(const blink::Node*);
913 void showTree(const blink::Node*); 910 void showTree(const blink::Node*);
914 void showNodePath(const blink::Node*); 911 void showNodePath(const blink::Node*);
915 #endif 912 #endif
916 913
917 #endif 914 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698