WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
118720
Remove PDFViewController and WKView "custom representations"
https://bugs.webkit.org/show_bug.cgi?id=118720
Summary
Remove PDFViewController and WKView "custom representations"
Tim Horton
Reported
2013-07-16 01:31:35 PDT
They're no longer needed in light of PDFPlugin. None of the other ports use them at all.
Attachments
patch
(81.15 KB, patch)
2013-07-16 01:36 PDT
,
Tim Horton
ap
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2013-07-16 01:36:09 PDT
Created
attachment 206739
[details]
patch
WebKit Commit Bot
Comment 2
2013-07-16 01:36:56 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Alexey Proskuryakov
Comment 3
2013-07-16 14:11:15 PDT
Comment on
attachment 206739
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=206739&action=review
> Source/WebKit2/UIProcess/WebPageProxy.cpp:1636 > bool WebPageProxy::supportsTextEncoding() const > { > - return !m_mainFrameHasCustomRepresentation && m_mainFrame && !m_mainFrame->isDisplayingStandaloneImageDocument(); > + return m_mainFrame && !m_mainFrame->isDisplayingStandaloneImageDocument();
This looks wrong, image documents are not the only ones that don't support text encoding. Before PDFPlugin, this code did the same for PDFs, and really, shouldn't it be all non-text documents? Could you file a bug and add a FIXME here?
> Source/WebKit2/UIProcess/WebPageProxy.cpp:-1678 > bool WebPageProxy::supportsTextZoom() const > { > - if (m_mainFrameHasCustomRepresentation) > - return false;
Ditto.
> Source/WebKit2/UIProcess/WebPageProxy.cpp:-1693 > - if (m_mainFrameHasCustomRepresentation) > - return;
Ditto?
> Source/WebKit2/UIProcess/WebPageProxy.cpp:-1715 > - if (m_mainFrameHasCustomRepresentation) { > - m_pageClient->setCustomRepresentationZoomFactor(zoomFactor); > - return; > - }
Hmm.
> Source/WebKit2/UIProcess/WebPageProxy.cpp:-1732 > - if (m_mainFrameHasCustomRepresentation) { > - m_pageClient->setCustomRepresentationZoomFactor(pageZoomFactor); > - return; > - }
Hmm!
> Source/WebKit2/UIProcess/WebPageProxy.cpp:-2314 > - m_mainFrameIsPinnedToLeftSide = true; > - m_mainFrameIsPinnedToRightSide = true; > - m_mainFrameIsPinnedToTopSide = true; > - m_mainFrameIsPinnedToBottomSide = true;
Can all associated code be deleted now, too?
> Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.h:47 > + virtual bool hasHTMLView() const OVERRIDE { return true; } > virtual bool hasWebView() const OVERRIDE;
This is confusing. Not sure how to unconfuse.
> Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm:120 > bool WebPage::shouldUsePDFPlugin() const
When will be the right time to delete this?
Tim Horton
Comment 4
2013-07-18 02:16:08 PDT
Comment on
attachment 206739
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=206739&action=review
>> Source/WebKit2/UIProcess/WebPageProxy.cpp:-2314 >> - m_mainFrameIsPinnedToBottomSide = true; > > Can all associated code be deleted now, too?
No, it's used for things that are still important in normal web views.
>> Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.h:47 >> virtual bool hasWebView() const OVERRIDE; > > This is confusing. Not sure how to unconfuse.
Could remove the override… the base class implementation just returns true. Wasn't sure that was sufficiently explicit.
>> Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm:120 >> bool WebPage::shouldUsePDFPlugin() const > > When will be the right time to delete this?
Soon! There are more patches in this vein coming.
Tim Horton
Comment 5
2013-07-18 02:33:59 PDT
http://trac.webkit.org/changeset/152841
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