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

Unified Diff: pdf/out_of_process_instance.cc

Issue 2077463002: Call pp::Size::IsEmpty() instead of !pp::Size::GetArea(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/out_of_process_instance.cc
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
index 489a449923e2d143471b21193d5d8974acfcbc65..3bb50cdfe6f6d2e29d8cc903174325c1c1ac4447 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -1445,7 +1445,7 @@ void OutOfProcessInstance::OnGeometryChanged(double old_zoom,
engine_->PageOffsetUpdated(available_area_.point());
engine_->PluginSizeUpdated(available_area_.size());
- if (!document_size_.GetArea())
+ if (document_size_.IsEmpty())
return;
paint_manager_.InvalidateRect(pp::Rect(pp::Point(), plugin_size_));
}
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698