Chromium Code Reviews| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 bool is_increment_set_; | 92 bool is_increment_set_; |
| 93 int reset_value_; | 93 int reset_value_; |
| 94 int increment_value_; | 94 int increment_value_; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 bool operator==(const CounterDirectives&, const CounterDirectives&); | 97 bool operator==(const CounterDirectives&, const CounterDirectives&); |
| 98 inline bool operator!=(const CounterDirectives& a, const CounterDirectives& b) { | 98 inline bool operator!=(const CounterDirectives& a, const CounterDirectives& b) { |
| 99 return !(a == b); | 99 return !(a == b); |
| 100 } | 100 } |
| 101 | 101 |
| 102 typedef HashMap<AtomicString, CounterDirectives> CounterDirectiveMap; | 102 // Not to be deleted through a pointer to HashMap. |
| 103 | 103 class CounterDirectiveMap : public HashMap<AtomicString, CounterDirectives> { |
| 104 std::unique_ptr<CounterDirectiveMap> Clone(const CounterDirectiveMap&); | 104 public: |
|
meade_UTC10
2017/05/31 05:26:09
Where's the implementation for this function? I ca
shend
2017/05/31 06:31:04
Good catch. Removed the corresponding implementati
| |
| 105 std::unique_ptr<CounterDirectiveMap> Clone() const { | |
| 106 return WTF::WrapUnique(new CounterDirectiveMap(*this)); | |
| 107 } | |
| 108 }; | |
| 105 | 109 |
| 106 } // namespace blink | 110 } // namespace blink |
| 107 | 111 |
| 108 #endif // CounterDirectives_h | 112 #endif // CounterDirectives_h |
| OLD | NEW |