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

Unified Diff: sky/engine/core/frame/LocalFrame.cpp

Issue 768973004: Remove PaintBehavior. It's unused. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/frame/FrameView.cpp ('k') | sky/engine/core/rendering/LayerPaintingInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/frame/LocalFrame.cpp
diff --git a/sky/engine/core/frame/LocalFrame.cpp b/sky/engine/core/frame/LocalFrame.cpp
index 5c3b0c09ff17b43cd01e09dfe345047a8d8bb389..1fd9d5de842ac241aceecb3c299b162fd037749b 100644
--- a/sky/engine/core/frame/LocalFrame.cpp
+++ b/sky/engine/core/frame/LocalFrame.cpp
@@ -312,23 +312,6 @@ void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words)
spellChecker().removeSpellingMarkersUnderWords(words);
}
-struct ScopedFramePaintingState {
- ScopedFramePaintingState(LocalFrame* frame)
- : frame(frame)
- , paintBehavior(frame->view()->paintBehavior())
- {
- }
-
- ~ScopedFramePaintingState()
- {
- frame->view()->setPaintBehavior(paintBehavior);
- frame->view()->setNodeToDraw(0);
- }
-
- LocalFrame* frame;
- PaintBehavior paintBehavior;
-};
-
double LocalFrame::devicePixelRatio() const
{
if (!m_host)
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/rendering/LayerPaintingInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698