Bug 47395 - [EFL] Implement pageRect() function
Summary: [EFL] Implement pageRect() function
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 47084
  Show dependency treegraph
 
Reported: 2010-10-07 20:03 PDT by Gyuyoung Kim
Modified: 2010-10-13 05:11 PDT (History)
6 users (show)

See Also:


Attachments
Patch (2.34 KB, patch)
2010-10-07 20:08 PDT, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (2.39 KB, patch)
2010-10-07 21:09 PDT, Gyuyoung Kim
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gyuyoung Kim 2010-10-07 20:03:29 PDT
I understand that the pageRect returns layout size. I implement it using frameRect() of WidgetEfl.cpp.
Comment 1 Gyuyoung Kim 2010-10-07 20:08:14 PDT
Created attachment 70197 [details]
Patch
Comment 2 Gyuyoung Kim 2010-10-07 20:23:55 PDT
This patch passes to EWS for EFL port. :-)

- http://webkit-commit-queue.appspot.com/
- http://webkit-commit-queue.appspot.com/queue-status/efl-ews
Comment 3 Antonio Gomes 2010-10-07 21:02:44 PDT
For Qt, it was implement as the viewport size:

113 FloatRect ChromeClientQt::pageRect() 
114 { 
115     if (!m_webPage) 
116         return FloatRect(); 
117     return FloatRect(QRectF(QPointF(0, 0), m_webPage->viewportSize())); 
118 }

although it seems like gtk returns the "page" size as well:


113 FloatRect ChromeClientQt::pageRect() 
114 { 
115     if (!m_webPage) 
116         return FloatRect(); 
117     return FloatRect(QRectF(QPointF(0, 0), m_webPage->viewportSize())); 
118 }


They are missing consistency(?)
Comment 4 Gyuyoung Kim 2010-10-07 21:09:07 PDT
Created attachment 70199 [details]
Patch

I understand that QT port is using frameRect() as well as this patch.  So, I also use the frameRect().
The frameRect() returns frameview size.

QSize QWebPage::viewportSize() const
{
    if (d->mainFrame && d->mainFrame->d->frame->view())
        return d->mainFrame->d->frame->view()->frameRect().size();

    return d->viewportSize;
}

And, I add null checking code.
Comment 5 WebKit Commit Bot 2010-10-07 21:43:43 PDT
Comment on attachment 70199 [details]
Patch

Clearing flags on attachment: 70199

Committed r69376: <http://trac.webkit.org/changeset/69376>
Comment 6 WebKit Commit Bot 2010-10-07 21:43:49 PDT
All reviewed patches have been landed.  Closing bug.