Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: WebCore/xml/XSLStyleSheetQt.cpp

Issue 6474050: Revert 78101 - Merge r76728, crbug 68263 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/xml/XSLStyleSheetLibxslt.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « WebCore/xml/XSLStyleSheetLibxslt.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698