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

Side by Side Diff: third_party/WebKit/Source/core/paint/BoxBorderPainter.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 "core/paint/BoxBorderPainter.h" 5 #include "core/paint/BoxBorderPainter.h"
6 6
7 #include <algorithm>
7 #include "core/paint/BoxPainter.h" 8 #include "core/paint/BoxPainter.h"
8 #include "core/paint/ObjectPainter.h" 9 #include "core/paint/ObjectPainter.h"
9 #include "core/paint/PaintInfo.h" 10 #include "core/paint/PaintInfo.h"
10 #include "core/style/BorderEdge.h" 11 #include "core/style/BorderEdge.h"
11 #include "core/style/ComputedStyle.h" 12 #include "core/style/ComputedStyle.h"
12 #include "platform/RuntimeEnabledFeatures.h" 13 #include "platform/RuntimeEnabledFeatures.h"
13 #include "platform/graphics/GraphicsContext.h" 14 #include "platform/graphics/GraphicsContext.h"
14 #include "platform/graphics/GraphicsContextStateSaver.h" 15 #include "platform/graphics/GraphicsContextStateSaver.h"
15 #include "wtf/Vector.h" 16 #include "wtf/Vector.h"
16 #include <algorithm>
17 17
18 namespace blink { 18 namespace blink {
19 19
20 namespace { 20 namespace {
21 21
22 enum BorderEdgeFlag { 22 enum BorderEdgeFlag {
23 TopBorderEdge = 1 << BSTop, 23 TopBorderEdge = 1 << BSTop,
24 RightBorderEdge = 1 << BSRight, 24 RightBorderEdge = 1 << BSRight,
25 BottomBorderEdge = 1 << BSBottom, 25 BottomBorderEdge = 1 << BSBottom,
26 LeftBorderEdge = 1 << BSLeft, 26 LeftBorderEdge = 1 << BSLeft,
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 FloatPoint secondQuad[4]; 1294 FloatPoint secondQuad[4];
1295 secondQuad[0] = quad[0]; 1295 secondQuad[0] = quad[0];
1296 secondQuad[1] = FloatPoint(quad[0].x() - r1 * cx, quad[0].y() - r1 * cy); 1296 secondQuad[1] = FloatPoint(quad[0].x() - r1 * cx, quad[0].y() - r1 * cy);
1297 secondQuad[2] = quad[2]; 1297 secondQuad[2] = quad[2];
1298 secondQuad[3] = quad[3]; 1298 secondQuad[3] = quad[3];
1299 clipQuad(graphicsContext, secondQuad, secondMiter == SoftMiter); 1299 clipQuad(graphicsContext, secondQuad, secondMiter == SoftMiter);
1300 } 1300 }
1301 } 1301 }
1302 1302
1303 } // namespace blink 1303 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698