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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerPainter.h

Issue 2194273002: Fix border radius on composited children. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Now working on basic test cases Created 4 years, 1 month 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 PaintLayerPainter_h 5 #ifndef PaintLayerPainter_h
6 #define PaintLayerPainter_h 6 #define PaintLayerPainter_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/paint/PaintLayerFragment.h" 9 #include "core/paint/PaintLayerFragment.h"
10 #include "core/paint/PaintLayerPaintingInfo.h" 10 #include "core/paint/PaintLayerPaintingInfo.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 PaintLayerFlags); 121 PaintLayerFlags);
122 122
123 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo, 123 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo,
124 const ClipRect&); 124 const ClipRect&);
125 125
126 // Returns whether this layer should be painted during sofware painting (i.e., 126 // Returns whether this layer should be painted during sofware painting (i.e.,
127 // not via calls from CompositedLayerMapping to draw into composited layers). 127 // not via calls from CompositedLayerMapping to draw into composited layers).
128 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, 128 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags,
129 PaintLayerFlags paintFlags); 129 PaintLayerFlags paintFlags);
130 130
131 // Convert a fragmentOffset from the coordinate system of this painter's
132 // layer to the coordinate system of the layer in which it's border radius
133 // clip rect is defined, for painting composited children using mask layers.
134 LayoutPoint fragmentOffsetForAncestorClipMask(const LayoutPoint&);
135
131 PaintLayer& m_paintLayer; 136 PaintLayer& m_paintLayer;
132 }; 137 };
133 138
134 } // namespace blink 139 } // namespace blink
135 140
136 #endif // PaintLayerPainter_h 141 #endif // PaintLayerPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698