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

Side by Side Diff: third_party/WebKit/Source/core/page/PageSerializer.h

Issue 1427943002: Wrap SVGImage for container during paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use IntSize for SVGImageForContainer Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Serializes the stylesheet back to text and adds it to the resources if UR L is not-empty. 92 // Serializes the stylesheet back to text and adds it to the resources if UR L is not-empty.
93 // It also adds any resources included in that stylesheet (including any imp orted stylesheets and their own resources). 93 // It also adds any resources included in that stylesheet (including any imp orted stylesheets and their own resources).
94 void serializeCSSStyleSheet(CSSStyleSheet&, const KURL&); 94 void serializeCSSStyleSheet(CSSStyleSheet&, const KURL&);
95 95
96 // Serializes the css rule (including any imported stylesheets), adding refe renced resources. 96 // Serializes the css rule (including any imported stylesheets), adding refe renced resources.
97 void serializeCSSRule(CSSRule*); 97 void serializeCSSRule(CSSRule*);
98 98
99 bool shouldAddURL(const KURL&); 99 bool shouldAddURL(const KURL&);
100 100
101 void addToResources(Resource *, PassRefPtr<SharedBuffer>, const KURL&); 101 void addToResources(Resource *, PassRefPtr<SharedBuffer>, const KURL&);
102 void addImageToResources(ImageResource*, LayoutObject*, const KURL&); 102 void addImageToResources(ImageResource*, const KURL&);
103 void addFontToResources(FontResource*); 103 void addFontToResources(FontResource*);
104 104
105 void retrieveResourcesForProperties(const StylePropertySet*, Document&); 105 void retrieveResourcesForProperties(const StylePropertySet*, Document&);
106 void retrieveResourcesForCSSValue(CSSValue*, Document&); 106 void retrieveResourcesForCSSValue(CSSValue*, Document&);
107 107
108 Vector<SerializedResource>* m_resources; 108 Vector<SerializedResource>* m_resources;
109 ListHashSet<KURL> m_resourceURLs; 109 ListHashSet<KURL> m_resourceURLs;
110 110
111 using BlankFrameURLMap = WillBeHeapHashMap<RawPtrWillBeMember<LocalFrame>, K URL>; 111 using BlankFrameURLMap = WillBeHeapHashMap<RawPtrWillBeMember<LocalFrame>, K URL>;
112 BlankFrameURLMap m_blankFrameURLs; 112 BlankFrameURLMap m_blankFrameURLs;
113 HashMap<String, String> m_rewriteURLs; 113 HashMap<String, String> m_rewriteURLs;
114 String m_rewriteFolder; 114 String m_rewriteFolder;
115 unsigned m_blankFrameCounter; 115 unsigned m_blankFrameCounter;
116 116
117 OwnPtr<Delegate> m_delegate; 117 OwnPtr<Delegate> m_delegate;
118 }; 118 };
119 119
120 } // namespace blink 120 } // namespace blink
121 121
122 #endif // PageSerializer_h 122 #endif // PageSerializer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp ('k') | third_party/WebKit/Source/core/page/PageSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698