Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index c8c48e98e7159e718021d5e9eb87a989051db3b8..aa97302bc28a52b1a32a6c30f5e863fa1fcbd1b0 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -180,7 +180,7 @@ StyleResolver::StyleResolver(Document* document, bool matchAuthorAndUserStyles) |
m_styleTree.clear(); |
DocumentStyleSheetCollection* styleSheetCollection = document->styleSheetCollection(); |
- m_ruleSets.initUserStyle(styleSheetCollection, *m_medium, *this); |
+ m_ruleSets.initUserStyle(styleSheetCollection, document->watchedCallbackSelectors(), *m_medium, *this); |
#if ENABLE(SVG_FONTS) |
if (document->svgExtensions()) { |
@@ -1874,6 +1874,9 @@ void StyleResolver::applyProperties(const StylePropertySet* properties, StyleRul |
{ |
ASSERT((propertyWhitelistType != PropertyWhitelistRegion) || m_state.regionForStyling()); |
InspectorInstrumentationCookie cookie = InspectorInstrumentation::willProcessRule(document(), rule, this); |
+#if ENABLE(CSS_CALLBACKS) |
+ m_state.setRule(rule); |
+#endif |
unsigned propertyCount = properties->propertyCount(); |
for (unsigned i = 0; i < propertyCount; ++i) { |