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

Side by Side Diff: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698