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

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

Issue 1025893002: compositor-worker: Add mutable attributes to CompositorProxy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « no previous file | Source/core/dom/CompositorProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/CompositorProxy.h
diff --git a/Source/core/dom/CompositorProxy.h b/Source/core/dom/CompositorProxy.h
index 7732c4c253983eb7f1b6e0673715e8ca0469fd4c..327dbbb7185ae6f67a1d5145e0ff427c1f438d12 100644
--- a/Source/core/dom/CompositorProxy.h
+++ b/Source/core/dom/CompositorProxy.h
@@ -38,15 +38,30 @@ public:
static void notifyElementGone(Element*);
uint64_t elementId() const { return m_elementId; }
- uint32_t attributes() const { return m_attributes; }
+ uint32_t attributes() const { return m_mutableAttributes; }
+
+ double opacity(ExceptionState&) const;
+ double scrollTop(ExceptionState&) const;
+ Vector<double> transform(ExceptionState&) const;
+
+ void setOpacity(double, ExceptionState&);
+ void setScrollTop(double, ExceptionState&);
+ void setTransform(const Vector<double>&, ExceptionState&);
protected:
CompositorProxy(Element*, uint32_t attributeFlags);
CompositorProxy(uint64_t element, uint32_t attributeFlags);
private:
+ bool raiseExceptionIfNotMutable(Attributes, ExceptionState&) const;
+
const uint64_t m_elementId;
- uint32_t m_attributes;
+ uint32_t m_mutableAttributes;
+ uint32_t m_mutatedAttributes;
esprehn 2015/03/29 04:44:56 Maybe use a bit field instead of the enum?
+
+ double m_opacity;
+ double m_scrollTop;
+ Vector<double, 16> m_transform;
};
} // namespace blink
« no previous file with comments | « no previous file | Source/core/dom/CompositorProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698