Changeset 181883 in webkit
- Timestamp:
- Mar 23, 2015, 6:01:55 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181882 r181883 1 2015-03-23 Alex Christensen <achristensen@webkit.org> 2 3 Fix api tests after r181876. 4 5 * contentextensions/ContentExtensionsBackend.cpp: 6 (WebCore::ContentExtensions::ContentExtensionsBackend::actionsForResourceLoad): 7 Always append a CSSDisplayNoneStyleSheet action if no ignore-previous-rules is seen. 8 * loader/cache/CachedResourceLoader.cpp: 9 (WebCore::CachedResourceLoader::requestResource): 10 Changed an assertion to a null check. 11 1 12 2015-03-23 Dean Jackson <dino@apple.com> 2 13 -
trunk/Source/WebCore/contentextensions/ContentExtensionsBackend.cpp
r181876 r181883 100 100 } 101 101 102 if (!sawIgnorePreviousRules && contentExtension->globalDisplayNoneStyleSheet())102 if (!sawIgnorePreviousRules) 103 103 finalActions.append(Action(ActionType::CSSDisplayNoneStyleSheet, contentExtension->identifier())); 104 104 } -
trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp
r181876 r181883 539 539 case ContentExtensions::ActionType::CSSDisplayNoneStyleSheet: { 540 540 StyleSheetContents* styleSheetContents = userContentController->globalDisplayNoneStyleSheet(action.stringArgument()); 541 RELEASE_ASSERT(styleSheetContents); 542 543 if (type == CachedResource::MainResource && request.initiatingDocumentLoader()) 544 request.initiatingDocumentLoader()->addPendingContentExtensionSheet(action.stringArgument(), *styleSheetContents); 545 else if (m_document) 546 m_document->styleSheetCollection().maybeAddContentExtensionSheet(action.stringArgument(), *styleSheetContents); 547 541 if (styleSheetContents) { 542 if (type == CachedResource::MainResource && request.initiatingDocumentLoader()) 543 request.initiatingDocumentLoader()->addPendingContentExtensionSheet(action.stringArgument(), *styleSheetContents); 544 else if (m_document) 545 m_document->styleSheetCollection().maybeAddContentExtensionSheet(action.stringArgument(), *styleSheetContents); 546 } 548 547 break; 549 548 }
Note:
See TracChangeset
for help on using the changeset viewer.