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

Side by Side Diff: Source/core/paint/ObjectPainter.h

Issue 759373002: Better handling border color style decoration (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changing the test per reviewer's request. Created 6 years 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
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 #ifndef ObjectPainter_h 5 #ifndef ObjectPainter_h
6 #define ObjectPainter_h 6 #define ObjectPainter_h
7 7
8 #include "core/rendering/style/RenderStyleConstants.h" 8 #include "core/rendering/style/RenderStyleConstants.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 15 matching lines...) Expand all
26 26
27 static void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, BoxSide, Color, EBorderStyle, int adjbw1, int adjbw2, bool antialias = fals e); 27 static void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, BoxSide, Color, EBorderStyle, int adjbw1, int adjbw2, bool antialias = fals e);
28 static void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, 28 static void drawDashedOrDottedBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2,
29 BoxSide, Color, int thickness, EBorderStyle, bool antialias); 29 BoxSide, Color, int thickness, EBorderStyle, bool antialias);
30 static void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, 30 static void drawDoubleBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2,
31 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac entWidth2, bool antialias); 31 int length, BoxSide, Color, int thickness, int adjacentWidth1, int adjac entWidth2, bool antialias);
32 static void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x 2, int y2, 32 static void drawRidgeOrGrooveBoxSide(GraphicsContext*, int x1, int y1, int x 2, int y2,
33 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo ol antialias); 33 BoxSide, Color, EBorderStyle, int adjacentWidth1, int adjacentWidth2, bo ol antialias);
34 static void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y 2, 34 static void drawSolidBoxSide(GraphicsContext*, int x1, int y1, int x2, int y 2,
35 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias); 35 BoxSide, Color, int adjacentWidth1, int adjacentWidth2, bool antialias);
36 static void modifyBorderColorForStyleIfNeeded(const EBorderStyle&, const Box Side&, Color&);
chrishtr 2014/12/01 22:51:31 Should be private, not public.
Savago 2014/12/02 01:02:39 It makes sense, but observe that all the static cl
pdr. 2014/12/02 02:55:49 This was a mistake, lets not be consistently wrong
chrishtr 2014/12/02 03:17:51 Some of those are public because they are used fro
36 private: 37 private:
37 38
38 RenderObject& m_renderObject; 39 RenderObject& m_renderObject;
39 }; 40 };
40 41
41 } // namespace blink 42 } // namespace blink
42 43
43 #endif 44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698