| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index 084047757776015def73b46e4927a6f3eac6534f..52539ba9b3aa2a351ab818fcbdf81aa34d07bcc8 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -63,6 +63,7 @@
|
| #include "core/css/resolver/StyleAdjuster.h"
|
| #include "core/css/resolver/StyleBuilder.h"
|
| #include "core/css/resolver/ViewportStyleResolver.h"
|
| +#include "core/dom/CSSSelectorWatch.h"
|
| #include "core/dom/NodeRenderStyle.h"
|
| #include "core/dom/NodeRenderingContext.h"
|
| #include "core/dom/StyleSheetCollections.h"
|
| @@ -138,7 +139,7 @@ StyleResolver::StyleResolver(Document* document, bool matchAuthorAndUserStyles)
|
| m_styleTree.clear();
|
|
|
| StyleSheetCollections* styleSheetCollection = document->styleSheetCollections();
|
| - m_ruleSets.initUserStyle(styleSheetCollection, *m_medium, *this);
|
| + m_ruleSets.initUserStyle(styleSheetCollection, CSSSelectorWatch::from(document)->watchedCallbackSelectors(), *m_medium, *this);
|
|
|
| #if ENABLE(SVG_FONTS)
|
| if (document->svgExtensions()) {
|
| @@ -1279,6 +1280,7 @@ template <StyleResolver::StyleApplicationPass pass>
|
| void StyleResolver::applyProperties(StyleResolverState& state, const StylePropertySet* properties, StyleRule* rule, bool isImportant, bool inheritedOnly, PropertyWhitelistType propertyWhitelistType)
|
| {
|
| ASSERT((propertyWhitelistType != PropertyWhitelistRegion) || state.regionForStyling());
|
| + state.setCurrentRule(rule);
|
|
|
| unsigned propertyCount = properties->propertyCount();
|
| for (unsigned i = 0; i < propertyCount; ++i) {
|
|
|