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

Unified Diff: Source/core/dom/CompositorProxy.cpp

Issue 1060973003: compositor-worker: Force elements to grow a layer when a CompositorProxy is created. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 8 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 | « LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/CompositorProxy.cpp
diff --git a/Source/core/dom/CompositorProxy.cpp b/Source/core/dom/CompositorProxy.cpp
index f656b9c65e8563d7dfbbfc6f96e5640fb5c10f06..a8c11a519e0867821c8dd49123580a6be750502b 100644
--- a/Source/core/dom/CompositorProxy.cpp
+++ b/Source/core/dom/CompositorProxy.cpp
@@ -10,6 +10,7 @@
#include "core/dom/DOMNodeIds.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
+#include "core/style/ComputedStyle.h"
namespace blink {
@@ -114,6 +115,9 @@ CompositorProxy::CompositorProxy(Element& element, const Vector<String>& attribu
ASSERT(isMainThread());
ASSERT(m_bitfieldsSupported);
ASSERT(sanityCheckAttributeFlags(m_bitfieldsSupported));
+
+ element.setHasCompositorProxy(true);
Ian Vollick 2015/04/07 16:40:15 Where do we set this to false?
sadrul 2015/04/07 16:43:23 We currently do not. The API will need to have a C
+ element.setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::CompositorProxy));
}
CompositorProxy::CompositorProxy(uint64_t elementId, uint32_t attributeFlags)
« no previous file with comments | « LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698