| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/testing/PaintPrinters.h" | 5 #include "platform/testing/PaintPrinters.h" |
| 6 | 6 |
| 7 #include <iomanip> // NOLINT |
| 8 #include <ostream> // NOLINT |
| 7 #include "platform/graphics/paint/PaintChunk.h" | 9 #include "platform/graphics/paint/PaintChunk.h" |
| 8 #include "platform/graphics/paint/PaintChunkProperties.h" | 10 #include "platform/graphics/paint/PaintChunkProperties.h" |
| 9 #include <iomanip> // NOLINT | |
| 10 #include <ostream> // NOLINT | |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 class StreamStateSaver : private std::ios { | 13 class StreamStateSaver : private std::ios { |
| 14 WTF_MAKE_NONCOPYABLE(StreamStateSaver); | 14 WTF_MAKE_NONCOPYABLE(StreamStateSaver); |
| 15 | 15 |
| 16 public: | 16 public: |
| 17 StreamStateSaver(std::ios& other) : std::ios(nullptr), m_other(other) { | 17 StreamStateSaver(std::ios& other) : std::ios(nullptr), m_other(other) { |
| 18 copyfmt(other); | 18 copyfmt(other); |
| 19 } | 19 } |
| 20 ~StreamStateSaver() { m_other.copyfmt(*this); } | 20 ~StreamStateSaver() { m_other.copyfmt(*this); } |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 void PrintTo(const EffectPaintPropertyNode& node, std::ostream* os) { | 100 void PrintTo(const EffectPaintPropertyNode& node, std::ostream* os) { |
| 101 *os << "EffectPaintPropertyNode(" << node.toString().ascii().data() << ")"; | 101 *os << "EffectPaintPropertyNode(" << node.toString().ascii().data() << ")"; |
| 102 } | 102 } |
| 103 | 103 |
| 104 void PrintTo(const ScrollPaintPropertyNode& node, std::ostream* os) { | 104 void PrintTo(const ScrollPaintPropertyNode& node, std::ostream* os) { |
| 105 *os << "ScrollPaintPropertyNode(" << node.toString().ascii().data() << ")"; | 105 *os << "ScrollPaintPropertyNode(" << node.toString().ascii().data() << ")"; |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace blink | 108 } // namespace blink |
| OLD | NEW |