Index: Source/core/html/HTMLStyleElement.cpp |
diff --git a/Source/core/html/HTMLStyleElement.cpp b/Source/core/html/HTMLStyleElement.cpp |
index f726525a26af4d8a8fe30d89e36eaa32eab9c272..3ddbffa12eaa1b44ae626b2a05c1ab23d4bff9c0 100644 |
--- a/Source/core/html/HTMLStyleElement.cpp |
+++ b/Source/core/html/HTMLStyleElement.cpp |
@@ -44,9 +44,9 @@ static StyleEventSender& styleLoadEventSender() |
return sharedLoadEventSender; |
} |
-inline HTMLStyleElement::HTMLStyleElement(const QualifiedName& tagName, Document* document, bool createdByParser) |
+inline HTMLStyleElement::HTMLStyleElement(const QualifiedName& tagName, Document& document, bool createdByParser) |
: HTMLElement(tagName, document) |
- , StyleElement(document, createdByParser) |
+ , StyleElement(&document, createdByParser) |
, m_firedLoad(false) |
, m_loadedSheet(false) |
, m_scopedStyleRegistrationState(NotRegistered) |
@@ -64,7 +64,7 @@ HTMLStyleElement::~HTMLStyleElement() |
styleLoadEventSender().cancelEvent(this); |
} |
-PassRefPtr<HTMLStyleElement> HTMLStyleElement::create(const QualifiedName& tagName, Document* document, bool createdByParser) |
+PassRefPtr<HTMLStyleElement> HTMLStyleElement::create(const QualifiedName& tagName, Document& document, bool createdByParser) |
{ |
return adoptRef(new HTMLStyleElement(tagName, document, createdByParser)); |
} |