OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 union { | 66 union { |
67 struct { | 67 struct { |
68 unsigned linkMatchType : 2; | 68 unsigned linkMatchType : 2; |
69 unsigned whitelistType : 2; | 69 unsigned whitelistType : 2; |
70 } m_types; | 70 } m_types; |
71 // Used to make sure all memory is zero-initialized since we compute the
hash over the bytes of this object. | 71 // Used to make sure all memory is zero-initialized since we compute the
hash over the bytes of this object. |
72 void* possiblyPaddedMember; | 72 void* possiblyPaddedMember; |
73 }; | 73 }; |
74 }; | 74 }; |
75 | 75 |
76 } // WebCore namespace | 76 } // namespace blink |
77 | 77 |
78 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::MatchedProperties); | 78 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::MatchedProperties); |
79 | 79 |
80 namespace blink { | 80 namespace blink { |
81 | 81 |
82 class MatchResult { | 82 class MatchResult { |
83 STACK_ALLOCATED(); | 83 STACK_ALLOCATED(); |
84 public: | 84 public: |
85 MatchResult() : isCacheable(true) { } | 85 MatchResult() : isCacheable(true) { } |
86 WillBeHeapVector<MatchedProperties, 64> matchedProperties; | 86 WillBeHeapVector<MatchedProperties, 64> matchedProperties; |
(...skipping 25 matching lines...) Expand all Loading... |
112 } | 112 } |
113 | 113 |
114 inline bool operator!=(const MatchedProperties& a, const MatchedProperties& b) | 114 inline bool operator!=(const MatchedProperties& a, const MatchedProperties& b) |
115 { | 115 { |
116 return !(a == b); | 116 return !(a == b); |
117 } | 117 } |
118 | 118 |
119 } // namespace blink | 119 } // namespace blink |
120 | 120 |
121 #endif // MatchResult_h | 121 #endif // MatchResult_h |
OLD | NEW |