Index: WebCore/xml/XSLStyleSheetQt.cpp |
=================================================================== |
--- WebCore/xml/XSLStyleSheetQt.cpp (revision 78365) |
+++ WebCore/xml/XSLStyleSheetQt.cpp (working copy) |
@@ -35,6 +35,7 @@ |
XSLStyleSheet::XSLStyleSheet(Node* parentNode, const String& originalURL, const KURL& finalURL, bool embedded) |
: StyleSheet(parentNode, originalURL, finalURL) |
+ , m_ownerDocument(parentNode->document()) |
, m_embedded(embedded) |
{ |
} |
@@ -62,10 +63,9 @@ |
CachedResourceLoader* XSLStyleSheet::cachedResourceLoader() |
{ |
- Document* document = ownerDocument(); |
- if (!document) |
+ if (!m_ownerDocument) |
return 0; |
- return document->cachedResourceLoader(); |
+ return m_ownerDocument->cachedResourceLoader(); |
} |
bool XSLStyleSheet::parseString(const String& string, bool) |
@@ -88,12 +88,6 @@ |
notImplemented(); |
} |
-Document* XSLStyleSheet::ownerDocument() |
-{ |
- Node* node = ownerNode(); |
- return node ? node->document() : 0; |
-} |
- |
void XSLStyleSheet::setParentStyleSheet(XSLStyleSheet*) |
{ |
notImplemented(); |