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

Unified Diff: Source/core/page/PageSerializer.cpp

Issue 1172303002: Merge page serializers [9/12] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename text.txt to empty.txt Created 5 years, 6 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
Index: Source/core/page/PageSerializer.cpp
diff --git a/Source/core/page/PageSerializer.cpp b/Source/core/page/PageSerializer.cpp
index 8e863ddf5bb8a455b83ccb28edf2563538d96404..6f26b42564efa38e3be47e401e68365d564c4383 100644
--- a/Source/core/page/PageSerializer.cpp
+++ b/Source/core/page/PageSerializer.cpp
@@ -249,8 +249,10 @@ void PageSerializer::serializeFrame(LocalFrame* frame)
Element& element = toElement(*node);
// We have to process in-line style as it might contain some resources (typically background images).
- if (element.isStyledElement())
+ if (element.isStyledElement()) {
retrieveResourcesForProperties(element.inlineStyle(), document);
+ retrieveResourcesForProperties(element.presentationAttributeStyle(), document);
+ }
if (isHTMLImageElement(element)) {
HTMLImageElement& imageElement = toHTMLImageElement(element);
« no previous file with comments | « no previous file | Source/web/tests/PageSerializerTest.cpp » ('j') | Source/web/tests/data/pageserializer/elements/elements.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698