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

Unified Diff: Source/core/css/VariablesIterator.h

Issue 119533003: Clear mutable inline style when it is empty. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed typo. Created 7 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 | « Source/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/css/VariablesIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/VariablesIterator.h
diff --git a/Source/core/css/VariablesIterator.h b/Source/core/css/VariablesIterator.h
index de945948ec6db008aef720c1f973d0ed90ad3eb8..5a411fe9a21cc8da648d1b00b0e8c524d27654c1 100644
--- a/Source/core/css/VariablesIterator.h
+++ b/Source/core/css/VariablesIterator.h
@@ -27,6 +27,7 @@
namespace WebCore {
class MutableStylePropertySet;
+class StylePropertySet;
class AbstractVariablesIterator : public CSSVariablesIterator {
public:
@@ -35,6 +36,8 @@ public:
protected:
void takeRemainingNames(Vector<AtomicString>& remainingNames) { m_remainingNames.swap(remainingNames); }
+ virtual void initRemainingNames(const StylePropertySet*);
+
private:
virtual void advance() OVERRIDE;
virtual bool atEnd() const OVERRIDE { return m_remainingNames.isEmpty(); }
@@ -55,8 +58,7 @@ public:
static PassRefPtr<VariablesIterator> create(MutableStylePropertySet*);
private:
- explicit VariablesIterator(MutableStylePropertySet* propertySet) : m_propertySet(propertySet) { }
-
+ explicit VariablesIterator(MutableStylePropertySet*);
virtual MutableStylePropertySet* propertySet() const OVERRIDE { return m_propertySet.get(); }
RefPtr<MutableStylePropertySet> m_propertySet;
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/css/VariablesIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698