| Index: Source/core/html/HTMLStyleElement.cpp
|
| diff --git a/Source/core/html/HTMLStyleElement.cpp b/Source/core/html/HTMLStyleElement.cpp
|
| index 55434df8e545cae9d56ccba1edb8d19f5a580c37..c0f78337400a7496ea15cc7366efd531f0a689e5 100644
|
| --- a/Source/core/html/HTMLStyleElement.cpp
|
| +++ b/Source/core/html/HTMLStyleElement.cpp
|
| @@ -77,8 +77,10 @@ void HTMLStyleElement::parseAttribute(const QualifiedName& name, const AtomicStr
|
|
|
| void HTMLStyleElement::finishParsingChildren()
|
| {
|
| - StyleElement::finishParsingChildren(this);
|
| + StyleElement::ProcessingResult result = StyleElement::finishParsingChildren(this);
|
| HTMLElement::finishParsingChildren();
|
| + if (result == StyleElement::ProcessingFatalError)
|
| + notifyLoadedSheetAndAllCriticalSubresources(true);
|
| }
|
|
|
| Node::InsertionNotificationRequest HTMLStyleElement::insertedInto(ContainerNode* insertionPoint)
|
| @@ -96,13 +98,15 @@ void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint)
|
|
|
| void HTMLStyleElement::didNotifySubtreeInsertionsToDocument()
|
| {
|
| - StyleElement::processStyleSheet(document(), this);
|
| + if (StyleElement::processStyleSheet(document(), this) == StyleElement::ProcessingFatalError)
|
| + notifyLoadedSheetAndAllCriticalSubresources(true);
|
| }
|
|
|
| void HTMLStyleElement::childrenChanged(const ChildrenChange& change)
|
| {
|
| HTMLElement::childrenChanged(change);
|
| - StyleElement::childrenChanged(this);
|
| + if (StyleElement::childrenChanged(this) == StyleElement::ProcessingFatalError)
|
| + notifyLoadedSheetAndAllCriticalSubresources(true);
|
| }
|
|
|
| const AtomicString& HTMLStyleElement::media() const
|
|
|