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

Unified Diff: sky/engine/core/rendering/PaintInvalidationState.h

Issue 823123003: Delete PaintInvalidationState. It's unused. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: proper diff Created 5 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/rendering/LayoutState.h ('k') | sky/engine/core/rendering/PaintInvalidationState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/PaintInvalidationState.h
diff --git a/sky/engine/core/rendering/PaintInvalidationState.h b/sky/engine/core/rendering/PaintInvalidationState.h
deleted file mode 100644
index 727baf724bd9150aa474df0bd8417bb4c6674964..0000000000000000000000000000000000000000
--- a/sky/engine/core/rendering/PaintInvalidationState.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SKY_ENGINE_CORE_RENDERING_PAINTINVALIDATIONSTATE_H_
-#define SKY_ENGINE_CORE_RENDERING_PAINTINVALIDATIONSTATE_H_
-
-#include "sky/engine/platform/geometry/LayoutRect.h"
-#include "sky/engine/wtf/Noncopyable.h"
-
-namespace blink {
-
-class RenderBox;
-class RenderInline;
-class RenderLayerModelObject;
-class RenderObject;
-class RenderView;
-
-class PaintInvalidationState {
- WTF_MAKE_NONCOPYABLE(PaintInvalidationState);
-public:
- PaintInvalidationState(const PaintInvalidationState& next, RenderLayerModelObject& renderer, const RenderLayerModelObject& paintInvalidationContainer);
-
- explicit PaintInvalidationState(const RenderView&);
-
- const LayoutRect& clipRect() const { return m_clipRect; }
- const LayoutSize& paintOffset() const { return m_paintOffset; }
-
- bool cachedOffsetsEnabled() const { return m_cachedOffsetsEnabled; }
- bool isClipped() const { return m_clipped; }
-
- bool forceCheckForPaintInvalidation() const { return m_forceCheckForPaintInvalidation; }
- void setForceCheckForPaintInvalidation() { m_forceCheckForPaintInvalidation = true; }
-
- const RenderLayerModelObject& paintInvalidationContainer() const { return m_paintInvalidationContainer; }
- const RenderObject& renderer() const { return m_renderer; }
-
- bool canMapToContainer(const RenderLayerModelObject* container) const
- {
- return m_cachedOffsetsEnabled && container == &m_paintInvalidationContainer;
- }
-private:
- void applyClipIfNeeded(const RenderObject&);
-
- friend class ForceHorriblySlowRectMapping;
-
- bool m_clipped;
- mutable bool m_cachedOffsetsEnabled;
- bool m_forceCheckForPaintInvalidation;
-
- LayoutRect m_clipRect;
-
- // x/y offset from paint invalidation container. Includes relative positioning and scroll offsets.
- LayoutSize m_paintOffset;
-
- const RenderLayerModelObject& m_paintInvalidationContainer;
-
- const RenderObject& m_renderer;
-};
-
-} // namespace blink
-
-#endif // SKY_ENGINE_CORE_RENDERING_PAINTINVALIDATIONSTATE_H_
« no previous file with comments | « sky/engine/core/rendering/LayoutState.h ('k') | sky/engine/core/rendering/PaintInvalidationState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698