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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 758843004: Delete most of rendering/compositing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index cacc9f545029bc1d1e8641027331e7194cf65134..76314ba809e51e42c2ea8e0187c17cf722308e6f 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -127,7 +127,6 @@
#include "sky/engine/core/page/Page.h"
#include "sky/engine/core/rendering/HitTestResult.h"
#include "sky/engine/core/rendering/RenderView.h"
-#include "sky/engine/core/rendering/compositing/RenderLayerCompositor.h"
#include "sky/engine/platform/DateComponents.h"
#include "sky/engine/platform/EventDispatchForbiddenScope.h"
#include "sky/engine/platform/Language.h"
@@ -1259,9 +1258,7 @@ void Document::attach(const AttachContext& context)
m_renderView = new RenderView(this);
setRenderer(m_renderView);
- m_renderView->setIsInWindow(true);
m_renderView->setStyle(StyleResolver::styleForDocument(*this));
- m_renderView->compositor()->setNeedsCompositingUpdate(CompositingUpdateAfterCompositingInputChange);
ContainerNode::attach(context);
@@ -1287,9 +1284,6 @@ void Document::detach(const AttachContext& context)
if (m_domWindow)
m_domWindow->clearEventQueue();
- if (m_renderView)
- m_renderView->setIsInWindow(false);
-
m_hoverNode = nullptr;
m_focusedElement = nullptr;
m_activeHoverElement = nullptr;
@@ -1732,7 +1726,7 @@ void Document::styleResolverChanged(StyleResolverUpdateMode updateMode)
ASSERT(renderView() || importsController());
if (renderView())
- renderView()->invalidatePaintForViewAndCompositedLayers();
+ renderView()->setShouldDoFullPaintInvalidation(true);
}
}

Powered by Google App Engine
This is Rietveld 408576698