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

Side by Side Diff: Source/core/style/BorderEdge.cpp

Issue 1045723009: Move core/layout/style to core/style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/style/BorderEdge.h ('k') | Source/core/style/BorderImageLength.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/style/BorderEdge.h ('k') | Source/core/style/BorderImageLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698