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

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

Issue 2378633002: Add dirty bits on Node indicating need for reattachLayoutTree (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | 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-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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 693
694 HasNameOrIsEditingTextFlag = 1 << 23, 694 HasNameOrIsEditingTextFlag = 1 << 23,
695 HasWeakReferencesFlag = 1 << 24, 695 HasWeakReferencesFlag = 1 << 24,
696 V8CollectableDuringMinorGCFlag = 1 << 25, 696 V8CollectableDuringMinorGCFlag = 1 << 25,
697 HasEventTargetDataFlag = 1 << 26, 697 HasEventTargetDataFlag = 1 << 26,
698 AlreadySpellCheckedFlag = 1 << 27, 698 AlreadySpellCheckedFlag = 1 << 27,
699 699
700 V0CustomElementFlag = 1 << 28, 700 V0CustomElementFlag = 1 << 28,
701 V0CustomElementUpgradedFlag = 1 << 29, 701 V0CustomElementUpgradedFlag = 1 << 29,
702 702
703 NeedsReattachLayoutTree = 1 << 30,
704 ChildNeedsReattachLayoutTree = 1 << 31,
705
703 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleCha nge 706 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleCha nge
704 }; 707 };
705 708
706 // 3 bits remaining. 709 // 0 bits remaining.
707 710
708 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } 711 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; }
709 void setFlag(bool f, NodeFlags mask) { m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); } 712 void setFlag(bool f, NodeFlags mask) { m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); }
710 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } 713 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; }
711 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } 714 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; }
712 715
713 protected: 716 protected:
714 enum ConstructionType { 717 enum ConstructionType {
715 CreateOther = DefaultNodeFlags, 718 CreateOther = DefaultNodeFlags,
716 CreateText = DefaultNodeFlags | IsTextFlag, 719 CreateText = DefaultNodeFlags | IsTextFlag,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 } // namespace blink 877 } // namespace blink
875 878
876 #ifndef NDEBUG 879 #ifndef NDEBUG
877 // Outside the WebCore namespace for ease of invocation from gdb. 880 // Outside the WebCore namespace for ease of invocation from gdb.
878 void showNode(const blink::Node*); 881 void showNode(const blink::Node*);
879 void showTree(const blink::Node*); 882 void showTree(const blink::Node*);
880 void showNodePath(const blink::Node*); 883 void showNodePath(const blink::Node*);
881 #endif 884 #endif
882 885
883 #endif // Node_h 886 #endif // Node_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698