OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.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 17 matching lines...) Expand all Loading... |
28 #include "wtf/Allocator.h" | 28 #include "wtf/Allocator.h" |
29 #include "wtf/HashMap.h" | 29 #include "wtf/HashMap.h" |
30 #include "wtf/MathExtras.h" | 30 #include "wtf/MathExtras.h" |
31 #include "wtf/RefPtr.h" | 31 #include "wtf/RefPtr.h" |
32 #include "wtf/text/AtomicString.h" | 32 #include "wtf/text/AtomicString.h" |
33 #include "wtf/text/AtomicStringHash.h" | 33 #include "wtf/text/AtomicStringHash.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class CounterDirectives { | 37 class CounterDirectives { |
38 ALLOW_ONLY_INLINE_ALLOCATION(); | 38 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
39 public: | 39 public: |
40 CounterDirectives() | 40 CounterDirectives() |
41 : m_isResetSet(false) | 41 : m_isResetSet(false) |
42 , m_isIncrementSet(false) | 42 , m_isIncrementSet(false) |
43 , m_resetValue(0) | 43 , m_resetValue(0) |
44 , m_incrementValue(0) | 44 , m_incrementValue(0) |
45 { | 45 { |
46 } | 46 } |
47 | 47 |
48 // FIXME: The code duplication here could possibly be replaced by using two | 48 // FIXME: The code duplication here could possibly be replaced by using two |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 bool operator==(const CounterDirectives&, const CounterDirectives&); | 104 bool operator==(const CounterDirectives&, const CounterDirectives&); |
105 inline bool operator!=(const CounterDirectives& a, const CounterDirectives& b) {
return !(a == b); } | 105 inline bool operator!=(const CounterDirectives& a, const CounterDirectives& b) {
return !(a == b); } |
106 | 106 |
107 typedef HashMap<AtomicString, CounterDirectives> CounterDirectiveMap; | 107 typedef HashMap<AtomicString, CounterDirectives> CounterDirectiveMap; |
108 | 108 |
109 PassOwnPtr<CounterDirectiveMap> clone(const CounterDirectiveMap&); | 109 PassOwnPtr<CounterDirectiveMap> clone(const CounterDirectiveMap&); |
110 | 110 |
111 } // namespace blink | 111 } // namespace blink |
112 | 112 |
113 #endif // CounterDirectives_h | 113 #endif // CounterDirectives_h |
OLD | NEW |