Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / css / resolver / StyleResolverParentScope.h
index 8972b42..87ca21c 100644 (file)
@@ -39,11 +39,13 @@ inline StyleResolverParentScope::StyleResolverParentScope(Node& parent)
     ASSERT(m_parent.document().inStyleRecalc());
     ASSERT(parent.isElementNode() || parent.isShadowRoot());
     s_currentScope = this;
+    m_resolver.increaseStyleSharingDepth();
 }
 
 inline StyleResolverParentScope::~StyleResolverParentScope()
 {
     s_currentScope = m_previous;
+    m_resolver.decreaseStyleSharingDepth();
     if (!m_pushed)
         return;
     if (m_parent.isElementNode())