Index: Source/core/inspector/InspectorCSSAgent.cpp |
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp |
index 04a5eeafd9cf3ef1e1150125ab1e36b1d944539e..23b104c1dd1332e92785f7a71862a6be1c5645ca 100644 |
--- a/Source/core/inspector/InspectorCSSAgent.cpp |
+++ b/Source/core/inspector/InspectorCSSAgent.cpp |
@@ -1231,7 +1231,7 @@ void InspectorCSSAgent::forcePseudoState(ErrorString* errorString, int nodeId, c |
m_nodeIdToForcedPseudoState.set(nodeId, forcedPseudoState); |
else |
m_nodeIdToForcedPseudoState.remove(nodeId); |
- element->ownerDocument()->setNeedsStyleRecalc(); |
+ element->ownerDocument()->setNeedsStyleRecalc(SubtreeStyleChange); |
} |
void InspectorCSSAgent::getNamedFlowCollection(ErrorString* errorString, int documentNodeId, RefPtr<TypeBuilder::Array<TypeBuilder::CSS::NamedFlow> >& result) |
@@ -1739,7 +1739,7 @@ void InspectorCSSAgent::resetPseudoStates() |
m_nodeIdToForcedPseudoState.clear(); |
for (HashSet<Document*>::iterator it = documentsToChange.begin(), end = documentsToChange.end(); it != end; ++it) |
- (*it)->setNeedsStyleRecalc(); |
+ (*it)->setNeedsStyleRecalc(SubtreeStyleChange); |
} |
} // namespace WebCore |