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

Unified Diff: chrome/renderer/pepper/ppb_pdf_impl.cc

Issue 12433021: Modify content::GetFontTable so clients can control what is read. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: chrome/renderer/pepper/ppb_pdf_impl.cc
diff --git a/chrome/renderer/pepper/ppb_pdf_impl.cc b/chrome/renderer/pepper/ppb_pdf_impl.cc
index 0198b196434cec3e1a84f72c809eec4caddae0a4..8829292876e152527eb1049b598e82a71f38940f 100644
--- a/chrome/renderer/pepper/ppb_pdf_impl.cc
+++ b/chrome/renderer/pepper/ppb_pdf_impl.cc
@@ -61,7 +61,7 @@ class PrivateFontFile : public ppapi::Resource {
uint32_t* output_length) {
size_t temp_size = static_cast<size_t>(*output_length);
bool rv = content::GetFontTable(
- fd_, table, static_cast<uint8_t*>(output), &temp_size);
+ fd_, table, static_cast<uint8_t*>(output), &temp_size, 0 /* offset */);
*output_length = static_cast<uint32_t>(temp_size);
return rv;
}

Powered by Google App Engine
This is Rietveld 408576698