| 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 "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 "platform/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 kTopBorderEdge = 1 << kBSTop, | 23 kTopBorderEdge = 1 << kBSTop, |
| 24 kRightBorderEdge = 1 << kBSRight, | 24 kRightBorderEdge = 1 << kBSRight, |
| 25 kBottomBorderEdge = 1 << kBSBottom, | 25 kBottomBorderEdge = 1 << kBSBottom, |
| 26 kLeftBorderEdge = 1 << kBSLeft, | 26 kLeftBorderEdge = 1 << kBSLeft, |
| (...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 FindIntersection(edge_quad[2], edge_quad[3], bound_quad1, bound_quad2, | 1465 FindIntersection(edge_quad[2], edge_quad[3], bound_quad1, bound_quad2, |
| 1466 clipping_quad[2]); | 1466 clipping_quad[2]); |
| 1467 clipping_quad[2] -= extension_offset; | 1467 clipping_quad[2] -= extension_offset; |
| 1468 clipping_quad[3] = edge_quad[3] - extension_offset; | 1468 clipping_quad[3] = edge_quad[3] - extension_offset; |
| 1469 | 1469 |
| 1470 ClipQuad(graphics_context, clipping_quad, second_miter == kSoftMiter); | 1470 ClipQuad(graphics_context, clipping_quad, second_miter == kSoftMiter); |
| 1471 } | 1471 } |
| 1472 } | 1472 } |
| 1473 | 1473 |
| 1474 } // namespace blink | 1474 } // namespace blink |
| OLD | NEW |