| Index: pdf/pdfium/pdfium_engine.cc
|
| diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
|
| index fd36d72850810b9dd12858d2281e5e6a827fca84..dd983f5fc9b5436a56639e688410e3b779b000fb 100644
|
| --- a/pdf/pdfium/pdfium_engine.cc
|
| +++ b/pdf/pdfium/pdfium_engine.cc
|
| @@ -2366,6 +2366,14 @@ int PDFiumEngine::GetNumberOfPages() {
|
| return pages_.size();
|
| }
|
|
|
| +uint32 PDFiumEngine::GetBackgroundColor() {
|
| + return background_color_;
|
| +}
|
| +
|
| +void PDFiumEngine::SetBackgroundColor(uint32 background_color) {
|
| + background_color_ = background_color;
|
| +}
|
| +
|
| pp::VarArray PDFiumEngine::GetBookmarks() {
|
| pp::VarDictionary dict = TraverseBookmarks(doc_, NULL);
|
| // The root bookmark contains no useful information.
|
| @@ -2936,7 +2944,7 @@ void PDFiumEngine::FillPageSides(int progressive_index) {
|
|
|
| FPDFBitmap_FillRect(bitmap, left.x() - dirty_in_screen.x(),
|
| left.y() - dirty_in_screen.y(), left.width(),
|
| - left.height(), kBackgroundColor);
|
| + left.height(), background_color_);
|
| }
|
|
|
| if (page_rect.right() < document_size_.width()) {
|
| @@ -2950,7 +2958,7 @@ void PDFiumEngine::FillPageSides(int progressive_index) {
|
|
|
| FPDFBitmap_FillRect(bitmap, right.x() - dirty_in_screen.x(),
|
| right.y() - dirty_in_screen.y(), right.width(),
|
| - right.height(), kBackgroundColor);
|
| + right.height(), background_color_);
|
| }
|
|
|
| // Paint separator.
|
| @@ -2962,7 +2970,7 @@ void PDFiumEngine::FillPageSides(int progressive_index) {
|
|
|
| FPDFBitmap_FillRect(bitmap, bottom.x() - dirty_in_screen.x(),
|
| bottom.y() - dirty_in_screen.y(), bottom.width(),
|
| - bottom.height(), kBackgroundColor);
|
| + bottom.height(), background_color_);
|
| }
|
|
|
| void PDFiumEngine::PaintPageShadow(int progressive_index,
|
| @@ -3414,7 +3422,7 @@ void PDFiumEngine::DrawPageShadow(const pp::Rect& page_rc,
|
|
|
| // We need to check depth only to verify our copy of shadow matrix is correct.
|
| if (!page_shadow_.get() || page_shadow_->depth() != depth)
|
| - page_shadow_.reset(new ShadowMatrix(depth, factor, kBackgroundColor));
|
| + page_shadow_.reset(new ShadowMatrix(depth, factor, background_color_));
|
|
|
| DCHECK(!image_data->is_null());
|
| DrawShadow(image_data, shadow_rect, page_rect, clip_rect, *page_shadow_);
|
|
|