Chromium Code Reviews| Index: Source/core/paint/DeprecatedPaintLayerPainter.h |
| diff --git a/Source/core/paint/DeprecatedPaintLayerPainter.h b/Source/core/paint/DeprecatedPaintLayerPainter.h |
| index 9c0fe9f0707ca751ef67b59cee1c2618e09050b1..8177858c5758da922d369cac9f367a2e65d2d962 100644 |
| --- a/Source/core/paint/DeprecatedPaintLayerPainter.h |
| +++ b/Source/core/paint/DeprecatedPaintLayerPainter.h |
| @@ -22,26 +22,29 @@ class CORE_EXPORT DeprecatedPaintLayerPainter { |
| public: |
| enum FragmentPolicy { AllowMultipleFragments, ForceSingleFragment }; |
| + enum PaintResult { FullyPainted, NotFullyPainted }; |
|
chrishtr
2015/09/09 17:23:45
s/NotFullyPainted/MaybeNotFullyPainted/
Also add
Xianzhu
2015/09/09 21:30:43
Done.
|
| + |
| DeprecatedPaintLayerPainter(DeprecatedPaintLayer& paintLayer) : m_paintLayer(paintLayer) { } |
| // The paint() method paints the layers that intersect the damage rect from back to front. |
| // paint() assumes that the caller will clip to the bounds of damageRect if necessary. |
| void paint(GraphicsContext*, const LayoutRect& damageRect, const GlobalPaintFlags = GlobalPaintNormalPhase, LayoutObject* paintingRoot = 0, PaintLayerFlags = 0); |
| // paintLayer() assumes that the caller will clip to the bounds of the painting dirty if necessary. |
| - void paintLayer(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
| + PaintResult paintLayer(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
| // paintLayerContents() assumes that the caller will clip to the bounds of the painting dirty rect if necessary. |
| - void paintLayerContents(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments); |
| + PaintResult paintLayerContents(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments); |
| void paintOverlayScrollbars(GraphicsContext*, const LayoutRect& damageRect, const GlobalPaintFlags, LayoutObject* paintingRoot = 0); |
| private: |
| enum ClipState { HasNotClipped, HasClipped }; |
| - void paintLayerContentsAndReflection(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments); |
| - void paintLayerWithTransform(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
| - void paintFragmentByApplyingTransform(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslation); |
| + PaintResult paintLayerInternal(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
| + PaintResult paintLayerContentsAndReflection(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, FragmentPolicy = AllowMultipleFragments); |
| + PaintResult paintLayerWithTransform(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
| + PaintResult paintFragmentByApplyingTransform(GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& fragmentTranslation); |
| - void paintChildren(unsigned childrenToVisit, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
| + PaintResult paintChildren(unsigned childrenToVisit, GraphicsContext*, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags); |
| bool atLeastOneFragmentIntersectsDamageRect(DeprecatedPaintLayerFragments&, const DeprecatedPaintLayerPaintingInfo&, PaintLayerFlags, const LayoutPoint& offsetFromRoot); |
| void paintFragmentWithPhase(PaintPhase, const DeprecatedPaintLayerFragment&, GraphicsContext*, const ClipRect&, const DeprecatedPaintLayerPaintingInfo&, LayoutObject* paintingRootForLayoutObject, PaintLayerFlags, ClipState); |
| void paintBackgroundForFragments(const DeprecatedPaintLayerFragments&, GraphicsContext*, |