WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
47395
[EFL] Implement pageRect() function
https://bugs.webkit.org/show_bug.cgi?id=47395
Summary
[EFL] Implement pageRect() function
Gyuyoung Kim
Reported
2010-10-07 20:03:29 PDT
I understand that the pageRect returns layout size. I implement it using frameRect() of WidgetEfl.cpp.
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
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Gyuyoung Kim
Comment 1
2010-10-07 20:08:14 PDT
Created
attachment 70197
[details]
Patch
Gyuyoung Kim
Comment 2
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
Antonio Gomes
Comment 3
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(?)
Gyuyoung Kim
Comment 4
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.
WebKit Commit Bot
Comment 5
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
>
WebKit Commit Bot
Comment 6
2010-10-07 21:43:49 PDT
All reviewed patches have been landed. Closing bug.
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