Upstream version 10.38.220.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / dom / ProcessingInstruction.cpp
index 585454e..a85dfcd 100644 (file)
@@ -219,6 +219,7 @@ void ProcessingInstruction::setXSLStyleSheet(const String& href, const KURL& bas
 
     ASSERT(m_isXSL);
     m_sheet = XSLStyleSheet::create(this, href, baseURL);
+    RefPtrWillBeRawPtr<Document> protect(&document());
     parseStyleSheet(sheet);
 }