| 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 <algorithm> |
| 8 #include "core/paint/BoxPainter.h" | 8 #include "core/paint/BoxPainter.h" |
| 9 #include "core/paint/ObjectPainter.h" | 9 #include "core/paint/ObjectPainter.h" |
| 10 #include "core/paint/PaintInfo.h" | 10 #include "core/paint/PaintInfo.h" |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 if (use_path) | 843 if (use_path) |
| 844 path = &border_info.rounded_border_path; | 844 path = &border_info.rounded_border_path; |
| 845 else | 845 else |
| 846 side_rect.ShiftXEdgeTo(side_rect.MaxX() - roundf(edge.Width())); | 846 side_rect.ShiftXEdgeTo(side_rect.MaxX() - roundf(edge.Width())); |
| 847 | 847 |
| 848 PaintOneBorderSide(context, side_rect, kBSRight, kBSTop, kBSBottom, path, | 848 PaintOneBorderSide(context, side_rect, kBSRight, kBSTop, kBSBottom, path, |
| 849 border_info.anti_alias, color, completed_edges); | 849 border_info.anti_alias, color, completed_edges); |
| 850 break; | 850 break; |
| 851 } | 851 } |
| 852 default: | 852 default: |
| 853 ASSERT_NOT_REACHED(); | 853 NOTREACHED(); |
| 854 } | 854 } |
| 855 } | 855 } |
| 856 | 856 |
| 857 BoxBorderPainter::MiterType BoxBorderPainter::ComputeMiter( | 857 BoxBorderPainter::MiterType BoxBorderPainter::ComputeMiter( |
| 858 BoxSide side, | 858 BoxSide side, |
| 859 BoxSide adjacent_side, | 859 BoxSide adjacent_side, |
| 860 BorderEdgeFlags completed_edges, | 860 BorderEdgeFlags completed_edges, |
| 861 bool antialias) const { | 861 bool antialias) const { |
| 862 const BorderEdge& adjacent_edge = edges_[adjacent_side]; | 862 const BorderEdge& adjacent_edge = edges_[adjacent_side]; |
| 863 | 863 |
| (...skipping 601 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 |