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

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: Improve clip recording code 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 PaintLayerFlags); 132 PaintLayerFlags);
133 133
134 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo, 134 static bool needsToClip(const PaintLayerPaintingInfo& localPaintingInfo,
135 const ClipRect&); 135 const ClipRect&);
136 136
137 // Returns whether this layer should be painted during sofware painting (i.e., 137 // Returns whether this layer should be painted during sofware painting (i.e.,
138 // not via calls from CompositedLayerMapping to draw into composited layers). 138 // not via calls from CompositedLayerMapping to draw into composited layers).
139 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags, 139 bool shouldPaintLayerInSoftwareMode(const GlobalPaintFlags,
140 PaintLayerFlags paintFlags); 140 PaintLayerFlags paintFlags);
141 141
142 // Convert a fragmentOffset from the coordinate system of this painter's
143 // layer to the coordinate system of the layer in which it's border radius
144 // clip rect is defined, for painting composited children using mask layers.
145 LayoutPoint fragmentOffsetForAncestorClipMask(const LayoutPoint&);
146
142 PaintLayer& m_paintLayer; 147 PaintLayer& m_paintLayer;
143 }; 148 };
144 149
145 } // namespace blink 150 } // namespace blink
146 151
147 #endif // PaintLayerPainter_h 152 #endif // PaintLayerPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698