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

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

Issue 201153006: Move element flags from ElementRareData to NodeRareData (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased (another ElementFlag added upstream) Created 6 years, 9 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 | Source/core/dom/ElementRareData.h » ('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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved.
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 ChildrenAffectedByHover = 1 << 8, 87 ChildrenAffectedByHover = 1 << 8,
88 ChildrenAffectedByActive = 1 << 9, 88 ChildrenAffectedByActive = 1 << 9,
89 ChildrenAffectedByDrag = 1 << 10, 89 ChildrenAffectedByDrag = 1 << 10,
90 ChildrenAffectedByFirstChildRules = 1 << 11, 90 ChildrenAffectedByFirstChildRules = 1 << 11,
91 ChildrenAffectedByLastChildRules = 1 << 12, 91 ChildrenAffectedByLastChildRules = 1 << 12,
92 ChildrenAffectedByDirectAdjacentRules = 1 << 13, 92 ChildrenAffectedByDirectAdjacentRules = 1 << 13,
93 ChildrenAffectedByIndirectAdjacentRules = 1 << 14, 93 ChildrenAffectedByIndirectAdjacentRules = 1 << 14,
94 ChildrenAffectedByForwardPositionalRules = 1 << 15, 94 ChildrenAffectedByForwardPositionalRules = 1 << 15,
95 ChildrenAffectedByBackwardPositionalRules = 1 << 16, 95 ChildrenAffectedByBackwardPositionalRules = 1 << 16,
96 96
97 NumberOfElementFlags = 17, // Required size of bitfield used to store the fl ags.
98
97 // If any of these flags are set we cannot share style. 99 // If any of these flags are set we cannot share style.
98 ElementFlagsPreventingStyleSharing = 100 ElementFlagsPreventingStyleSharing =
99 ChildrenAffectedByFocus 101 ChildrenAffectedByFocus
100 | ChildrenAffectedByHover 102 | ChildrenAffectedByHover
101 | ChildrenAffectedByActive 103 | ChildrenAffectedByActive
102 | ChildrenAffectedByDrag 104 | ChildrenAffectedByDrag
103 | ChildrenAffectedByFirstChildRules 105 | ChildrenAffectedByFirstChildRules
104 | ChildrenAffectedByLastChildRules 106 | ChildrenAffectedByLastChildRules
105 | ChildrenAffectedByDirectAdjacentRules 107 | ChildrenAffectedByDirectAdjacentRules
106 | ChildrenAffectedByIndirectAdjacentRules 108 | ChildrenAffectedByIndirectAdjacentRules
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \ 938 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \
937 DEFINE_NODE_TYPE_CASTS(thisType, predicate) 939 DEFINE_NODE_TYPE_CASTS(thisType, predicate)
938 940
939 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ 941 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \
940 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \ 942 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \
941 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) 943 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType)
942 944
943 } // namespace 945 } // namespace
944 946
945 #endif 947 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698