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

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

Issue 23202008: Add font support to PageSerializer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding font (I've heard this might work now) Created 7 years, 3 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/CSSValue.h ('k') | Source/core/page/PageSerializer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PageSerializer.h
diff --git a/Source/core/page/PageSerializer.h b/Source/core/page/PageSerializer.h
index 296cba61272ecffe0f44a62fcf807074e2f78b66..93a4dc10677b93a545968cfbb8d3209855e8e620 100644
--- a/Source/core/page/PageSerializer.h
+++ b/Source/core/page/PageSerializer.h
@@ -39,14 +39,19 @@
namespace WebCore {
+class FontResource;
class ImageResource;
class CSSStyleSheet;
+class CSSValue;
class Document;
class Frame;
class Page;
class RenderObject;
+class Resource;
+class SharedBuffer;
class StylePropertySet;
class StyleRule;
+class StyleRuleFontFace;
struct SerializedResource;
@@ -70,9 +75,14 @@ private:
// It also adds any resources included in that stylesheet (including any imported stylesheets and their own resources).
void serializeCSSStyleSheet(CSSStyleSheet*, const KURL&);
+ bool shouldAddURL(const KURL&);
+
+ void addToResources(Resource *, PassRefPtr<SharedBuffer>, const KURL&);
void addImageToResources(ImageResource*, RenderObject*, const KURL&);
+ void addFontToResources(FontResource*);
+
void retrieveResourcesForProperties(const StylePropertySet*, Document*);
- void retrieveResourcesForRule(StyleRule*, Document*);
+ void retrieveResourcesForCSSValue(CSSValue*, Document*);
Vector<SerializedResource>* m_resources;
ListHashSet<KURL> m_resourceURLs;
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/page/PageSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698