| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/paint/BoxBorderPainter.h" | 6 #include "core/paint/BoxBorderPainter.h" |
| 7 | 7 |
| 8 #include "core/paint/BoxPainter.h" | 8 #include "core/paint/BoxPainter.h" |
| 9 #include "core/paint/PaintInfo.h" | 9 #include "core/paint/PaintInfo.h" |
| 10 #include "core/style/BorderEdge.h" | 10 #include "core/style/BorderEdge.h" |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 | 548 |
| 549 m_isRounded = m_outer.isRounded(); | 549 m_isRounded = m_outer.isRounded(); |
| 550 } | 550 } |
| 551 | 551 |
| 552 BoxBorderPainter::BoxBorderPainter(const ComputedStyle& style, const LayoutRect&
outer, | 552 BoxBorderPainter::BoxBorderPainter(const ComputedStyle& style, const LayoutRect&
outer, |
| 553 const LayoutRect& inner, const BorderEdge& uniformEdgeInfo) | 553 const LayoutRect& inner, const BorderEdge& uniformEdgeInfo) |
| 554 : m_style(style) | 554 : m_style(style) |
| 555 , m_bleedAvoidance(BackgroundBleedNone) | 555 , m_bleedAvoidance(BackgroundBleedNone) |
| 556 , m_includeLogicalLeftEdge(true) | 556 , m_includeLogicalLeftEdge(true) |
| 557 , m_includeLogicalRightEdge(true) | 557 , m_includeLogicalRightEdge(true) |
| 558 , m_outer(outer) | 558 , m_outer(FloatRect(outer)) |
| 559 , m_inner(inner) | 559 , m_inner(FloatRect(inner)) |
| 560 , m_visibleEdgeCount(0) | 560 , m_visibleEdgeCount(0) |
| 561 , m_firstVisibleEdge(0) | 561 , m_firstVisibleEdge(0) |
| 562 , m_visibleEdgeSet(0) | 562 , m_visibleEdgeSet(0) |
| 563 , m_isUniformStyle(true) | 563 , m_isUniformStyle(true) |
| 564 , m_isUniformWidth(true) | 564 , m_isUniformWidth(true) |
| 565 , m_isUniformColor(true) | 565 , m_isUniformColor(true) |
| 566 , m_isRounded(false) | 566 , m_isRounded(false) |
| 567 , m_hasAlpha(false) | 567 , m_hasAlpha(false) |
| 568 { | 568 { |
| 569 for (auto& edge : m_edges) | 569 for (auto& edge : m_edges) |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 FloatPoint secondQuad[4]; | 1209 FloatPoint secondQuad[4]; |
| 1210 secondQuad[0] = quad[0]; | 1210 secondQuad[0] = quad[0]; |
| 1211 secondQuad[1] = FloatPoint(quad[0].x() - r1 * cx, quad[0].y() - r1 * cy)
; | 1211 secondQuad[1] = FloatPoint(quad[0].x() - r1 * cx, quad[0].y() - r1 * cy)
; |
| 1212 secondQuad[2] = quad[2]; | 1212 secondQuad[2] = quad[2]; |
| 1213 secondQuad[3] = quad[3]; | 1213 secondQuad[3] = quad[3]; |
| 1214 graphicsContext->clipPolygon(4, secondQuad, secondMiter == SoftMiter); | 1214 graphicsContext->clipPolygon(4, secondQuad, secondMiter == SoftMiter); |
| 1215 } | 1215 } |
| 1216 } | 1216 } |
| 1217 | 1217 |
| 1218 } // namespace blink | 1218 } // namespace blink |
| OLD | NEW |