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

Unified Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 15556002: Refactoring: Generalize CachedSVGDocument for non-SVG use. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Resolved the conflict. Created 7 years, 7 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 | « Source/core/css/WebKitCSSSVGDocumentValue.cpp ('k') | Source/core/loader/cache/CachedDocument.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index a22a18f3a4ef36390b0fb5598db59fb2cef28e32..df498e27a56ddd2cb9151322138e95d6b4bc488e 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -107,8 +107,8 @@
#include "core/html/HTMLTextAreaElement.h"
#include "core/html/track/WebVTTElement.h"
#include "core/inspector/InspectorInstrumentation.h"
+#include "core/loader/cache/CachedDocument.h"
#include "core/loader/cache/CachedImage.h"
-#include "core/loader/cache/CachedSVGDocument.h"
#include "core/loader/cache/CachedSVGDocumentReference.h"
#include "core/page/Frame.h"
#include "core/page/FrameView.h"
@@ -3635,11 +3635,11 @@ void StyleResolver::loadPendingSVGDocuments()
WebKitCSSSVGDocumentValue* value = state.pendingSVGDocuments().get(referenceFilter);
if (!value)
continue;
- CachedSVGDocument* cachedDocument = value->load(cachedResourceLoader);
+ CachedDocument* cachedDocument = value->load(cachedResourceLoader);
if (!cachedDocument)
continue;
- // Stash the CachedSVGDocument on the reference filter.
+ // Stash the CachedDocument on the reference filter.
referenceFilter->setCachedSVGDocumentReference(adoptPtr(new CachedSVGDocumentReference(cachedDocument)));
}
}
« no previous file with comments | « Source/core/css/WebKitCSSSVGDocumentValue.cpp ('k') | Source/core/loader/cache/CachedDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698