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

Issue 469833003: Cannot preview PDFs (Closed)

Created:
6 years, 4 months ago by abarth-chromium
Modified:
6 years, 4 months ago
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

Cannot preview PDFs In r180112, I removed some seemly dead code, but that code actually existed to make some functions on PrintContext virtual. Instead of hacking in virtuals via a subclass in the web layer, we can just make the functions virtual in the base class. I've also added OVERRIDE annotations to catch this sort of error at compile time. These annotations required me to fix the return type of one of these functions to match. Finally, I've added a test, which appears to be the first unit test to exercise this codepath. R=vitalybuka@chromium.org BUG=403467

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -13 lines) Patch
M Source/core/page/PrintContext.h View 2 chunks +4 lines, -3 lines 10 comments Download
M Source/core/page/PrintContext.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 4 chunks +8 lines, -8 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
abarth-chromium
6 years, 4 months ago (2014-08-13 20:13:11 UTC) #1
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h File Source/core/page/PrintContext.h (right): https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h#newcode43 Source/core/page/PrintContext.h:43: ~PrintContext(); virtual destructor? https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h#newcode59 Source/core/page/PrintContext.h:59: const IntRect& pageRect(size_t pageNumber) ...
6 years, 4 months ago (2014-08-13 21:17:42 UTC) #2
abarth-chromium
https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h File Source/core/page/PrintContext.h (right): https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h#newcode43 Source/core/page/PrintContext.h:43: ~PrintContext(); Will do. https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h#newcode60 Source/core/page/PrintContext.h:60: const Vector<IntRect>& pageRects() const ...
6 years, 4 months ago (2014-08-13 21:23:14 UTC) #3
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h File Source/core/page/PrintContext.h (right): https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h#newcode55 Source/core/page/PrintContext.h:55: void computePageRectsWithPageSize(const FloatSize& pageSizeInPixels, bool allowHorizontalTiling); virtual, because it's ...
6 years, 4 months ago (2014-08-13 21:43:44 UTC) #4
Vitaly Buka (NO REVIEWS)
On 2014/08/13 21:43:44, Vitaly Buka wrote: > https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h > File Source/core/page/PrintContext.h (right): > > https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h#newcode55 ...
6 years, 4 months ago (2014-08-13 21:45:02 UTC) #5
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h File Source/core/page/PrintContext.h (right): https://codereview.chromium.org/469833003/diff/1/Source/core/page/PrintContext.h#newcode61 Source/core/page/PrintContext.h:61: Actually even better to do following all 3 non ...
6 years, 4 months ago (2014-08-13 21:53:27 UTC) #6
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/476463002
6 years, 4 months ago (2014-08-13 22:03:52 UTC) #7
abarth-chromium
On 2014/08/13 at 22:03:52, vitalybuka wrote: > https://codereview.chromium.org/476463002 Do you want to land that version ...
6 years, 4 months ago (2014-08-13 22:08:05 UTC) #8
Vitaly Buka (NO REVIEWS)
On 2014/08/13 22:08:05, abarth wrote: > On 2014/08/13 at 22:03:52, vitalybuka wrote: > > https://codereview.chromium.org/476463002 ...
6 years, 4 months ago (2014-08-13 23:04:05 UTC) #9
abarth-chromium
6 years, 4 months ago (2014-08-13 23:04:52 UTC) #10
Message was sent while issue was closed.
Closed in favor of vitalybuka's version

Powered by Google App Engine
This is Rietveld 408576698