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

Unified Diff: pdf/pdfium/pdfium_page.h

Issue 1550193002: Simplify PDFiumEngine::CheckPageAvailable(). Base URL: https://chromium.googlesource.com/chromium/src.git@pdfload
Patch Set: more Created 5 years 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 | « pdf/pdfium/pdfium_engine.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_page.h
diff --git a/pdf/pdfium/pdfium_page.h b/pdf/pdfium/pdfium_page.h
index eee57e0f76c8173ce5e342ab0b50a4ab6262946c..b89f3ba3545a9e271e785871c4aaa421fdb56185 100644
--- a/pdf/pdfium/pdfium_page.h
+++ b/pdf/pdfium/pdfium_page.h
@@ -85,7 +85,7 @@ class PDFiumPage {
pp::Rect rect() const { return rect_; }
void set_rect(const pp::Rect& r) { rect_ = r; }
bool available() const { return available_; }
- void set_available(bool available) { available_ = available; }
+ void set_as_available() { available_ = true; }
void set_calculated_links(bool calculated_links) {
calculated_links_ = calculated_links;
}
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698