Index: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp |
diff --git a/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp b/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp |
index 3abfbc33959cc7cff27a2791e66d3d42d53c30b1..417d46fd060ff94838dc87445f90bf5f583a87d4 100644 |
--- a/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp |
+++ b/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp |
@@ -349,6 +349,11 @@ DEFINE_TRACE(StyleRuleCSSStyleDeclaration) |
PropertySetCSSStyleDeclaration::trace(visitor); |
} |
+InlineCSSStyleDeclaration::InlineCSSStyleDeclaration(Element* parentElement) |
+ : m_parentElement(parentElement) |
+{ |
+} |
+ |
MutableStylePropertySet& InlineCSSStyleDeclaration::propertySet() const |
{ |
return m_parentElement->ensureMutableInlineStyle(); |
@@ -373,6 +378,11 @@ CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const |
return m_parentElement ? &m_parentElement->document().elementSheet() : nullptr; |
} |
+Element* InlineCSSStyleDeclaration::parentElement() const |
+{ |
+ return m_parentElement; |
+} |
+ |
#if !ENABLE(OILPAN) |
void InlineCSSStyleDeclaration::ref() |
{ |