OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/layout/style/BorderEdge.h" | 6 #include "core/style/BorderEdge.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 BorderEdge::BorderEdge(int edgeWidth, const Color& edgeColor, EBorderStyle edgeS
tyle, bool edgeIsTransparent, bool edgeIsPresent) | 10 BorderEdge::BorderEdge(int edgeWidth, const Color& edgeColor, EBorderStyle edgeS
tyle, bool edgeIsTransparent, bool edgeIsPresent) |
11 : width(edgeWidth) | 11 : width(edgeWidth) |
12 , color(edgeColor) | 12 , color(edgeColor) |
13 , isTransparent(edgeIsTransparent) | 13 , isTransparent(edgeIsTransparent) |
14 , isPresent(edgeIsPresent) | 14 , isPresent(edgeIsPresent) |
15 , style(edgeStyle) | 15 , style(edgeStyle) |
16 { | 16 { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 if (fullWidth % 3 == 1) | 75 if (fullWidth % 3 == 1) |
76 innerWidth += 1; | 76 innerWidth += 1; |
77 } | 77 } |
78 | 78 |
79 bool BorderEdge::sharesColorWith(const BorderEdge& other) const | 79 bool BorderEdge::sharesColorWith(const BorderEdge& other) const |
80 { | 80 { |
81 return color == other.color; | 81 return color == other.color; |
82 } | 82 } |
83 | 83 |
84 } // namespace blink | 84 } // namespace blink |
OLD | NEW |