Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / RenderLayerRepainter.h
index b55d89d..57bf7b7 100644 (file)
 #include "platform/geometry/LayoutRect.h"
 #include "wtf/Noncopyable.h"
 
-namespace WebCore {
-
-enum RepaintStatus {
-    NeedsNormalRepaint = 0,
-    NeedsFullRepaint = 1 << 0,
-    NeedsFullRepaintForPositionedMovementLayout = NeedsFullRepaint | 1 << 1
-};
+namespace blink {
 
 class RenderLayer;
 class RenderLayerModelObject;
@@ -64,17 +58,11 @@ class RenderLayerRepainter {
 public:
     RenderLayerRepainter(RenderLayerModelObject&);
 
-    // Return a cached repaint rect, computed relative to the layer renderer's containerForPaintInvalidation.
-    LayoutRect repaintRect() const { return m_repaintRect; }
     LayoutRect repaintRectIncludingNonCompositingDescendants() const;
 
-    void repaintAfterLayout(bool shouldCheckForRepaint);
-    void repaintIncludingNonCompositingDescendants();
+    void paintInvalidationIncludingNonCompositingDescendants();
 
-    void setRepaintStatus(RepaintStatus status) { m_repaintStatus = status; }
-
-    void computeRepaintRects();
-    void computeRepaintRectsIncludingNonCompositingDescendants();
+    void computePaintInvalidationRectsIncludingNonCompositingDescendants();
 
     // Indicate that the layer contents need to be repainted. Only has an effect
     // if layer compositing is being used,
@@ -85,20 +73,11 @@ public:
 private:
     void repaintIncludingNonCompositingDescendantsInternal(const RenderLayerModelObject* repaintContainer);
 
-    bool shouldRepaintLayer() const;
-
-    void clearRepaintRects();
-
     RenderLayer* enclosingFilterRepaintLayer() const;
 
     RenderLayerModelObject& m_renderer;
-
-    unsigned m_repaintStatus; // RepaintStatus
-
-    LayoutRect m_repaintRect; // Cached repaint rects. Used by layout.
-    LayoutPoint m_offset;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // RenderLayerRepainter_h