WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 150037
PDFPlugin should take advantage of threaded scrolling
https://bugs.webkit.org/show_bug.cgi?id=150037
Summary
PDFPlugin should take advantage of threaded scrolling
Tim Horton
Reported
2015-10-12 11:12:50 PDT
PDFPlugin should take advantage of threaded scrolling
Attachments
Patch
(239.50 KB, patch)
2015-10-12 11:14 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(223.03 KB, patch)
2015-10-19 19:34 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(221.42 KB, patch)
2015-11-02 14:29 PST
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(221.66 KB, patch)
2015-11-02 15:21 PST
,
Tim Horton
andersca
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2015-10-12 11:14:37 PDT
Created
attachment 262905
[details]
Patch
Tim Horton
Comment 2
2015-10-19 19:34:47 PDT
Created
attachment 263543
[details]
Patch
Tim Horton
Comment 3
2015-11-02 14:29:25 PST
Created
attachment 264628
[details]
Patch
WebKit Commit Bot
Comment 4
2015-11-02 14:32:25 PST
Attachment 264628
[details]
did not pass style-queue: ERROR: Source/WebKit2/WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:1905: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm:1724: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.h:239: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 3 in 36 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 5
2015-11-02 15:21:28 PST
Created
attachment 264635
[details]
Patch
WebKit Commit Bot
Comment 6
2015-11-02 15:24:44 PST
Attachment 264635
[details]
did not pass style-queue: ERROR: Source/WebKit2/WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:1905: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm:1724: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.h:240: enum members should use InterCaps with an initial capital letter. [readability/enum_casing] [4] Total errors found: 3 in 36 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 7
2015-11-02 16:19:08 PST
Comment on
attachment 264635
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=264635&action=review
> Source/WebKit2/WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:536 > + m_accessibilityObject.get().pdfLayerController = m_pdfLayerController.get(); > + m_accessibilityObject.get().parent = webFrame()->page()->accessibilityRemoteObject();
.get(). :|
> Source/WebKit2/WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:1423 > + }
Weird that there's a fall-through here. I'd add a break; just to be sure. Same for all outer cases.
> Source/WebKit2/WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:1749 > + PDFSelection *selectionForInitialSearch = [initialSelection copy];
Please use a RetainPtr here.
> Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm:374 > + std::function<void(bool)> _completionHandler;
void (bool).
> Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm:882 > +// context.translate(0, -m_size.height());
What.
Tim Horton
Comment 8
2015-11-02 16:27:50 PST
http://trac.webkit.org/changeset/191922
Tim Horton
Comment 9
2015-11-02 16:47:45 PST
http://trac.webkit.org/changeset/191926
http://trac.webkit.org/changeset/191927
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug