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

Unified Diff: sky/engine/core/css/StyleRuleKeyframes.h

Issue 758573005: Remove CSSOM mutability in StyleRule. (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/css/StyleRule.cpp ('k') | sky/engine/core/css/StyleRuleKeyframes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleRuleKeyframes.h
diff --git a/sky/engine/core/css/StyleRuleKeyframes.h b/sky/engine/core/css/StyleRuleKeyframes.h
index a7c76556a949be29cbca065eb2e44adf7e7d03c0..67911a0e6478f8927e4646be3df82e58659356a0 100644
--- a/sky/engine/core/css/StyleRuleKeyframes.h
+++ b/sky/engine/core/css/StyleRuleKeyframes.h
@@ -28,6 +28,7 @@
#include "sky/engine/core/css/StyleRule.h"
#include "sky/engine/wtf/Forward.h"
+#include "sky/engine/wtf/Noncopyable.h"
#include "sky/engine/wtf/text/AtomicString.h"
namespace blink {
@@ -35,6 +36,7 @@ namespace blink {
class StyleKeyframe;
class StyleRuleKeyframes final : public StyleRuleBase {
+ WTF_MAKE_NONCOPYABLE(StyleRuleKeyframes);
public:
static PassRefPtr<StyleRuleKeyframes> create() { return adoptRef(new StyleRuleKeyframes()); }
@@ -43,8 +45,6 @@ public:
const Vector<RefPtr<StyleKeyframe> >& keyframes() const { return m_keyframes; }
void parserAppendKeyframe(PassRefPtr<StyleKeyframe>);
- void wrapperAppendKeyframe(PassRefPtr<StyleKeyframe>);
- void wrapperRemoveKeyframe(unsigned);
String name() const { return m_name; }
void setName(const String& name) { m_name = AtomicString(name); }
@@ -52,13 +52,8 @@ public:
bool isVendorPrefixed() const { return m_isPrefixed; }
void setVendorPrefixed(bool isPrefixed) { m_isPrefixed = isPrefixed; }
- int findKeyframeIndex(const String& key) const;
-
- PassRefPtr<StyleRuleKeyframes> copy() const { return adoptRef(new StyleRuleKeyframes(*this)); }
-
private:
StyleRuleKeyframes();
- explicit StyleRuleKeyframes(const StyleRuleKeyframes&);
Vector<RefPtr<StyleKeyframe> > m_keyframes;
AtomicString m_name;
« no previous file with comments | « sky/engine/core/css/StyleRule.cpp ('k') | sky/engine/core/css/StyleRuleKeyframes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698