WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
130631
[iOS][WK2] Micro-optimize view state updates on the UIProcess side
https://bugs.webkit.org/show_bug.cgi?id=130631
Summary
[iOS][WK2] Micro-optimize view state updates on the UIProcess side
Benjamin Poulain
Reported
2014-03-21 20:20:38 PDT
[iOS][WK2] Micro-optimize view state updates on the UIProcess side
Attachments
Patch
(7.34 KB, patch)
2014-03-21 20:23 PDT
,
Benjamin Poulain
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2014-03-21 20:23:14 PDT
Created
attachment 227528
[details]
Patch
Darin Adler
Comment 2
2014-03-22 08:03:01 PDT
Comment on
attachment 227528
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=227528&action=review
> Source/WebKit2/UIProcess/ios/WKContentView.mm:240 > + return (FloatRect)FrameView::rectForViewportConstrainedObjects(enclosingLayoutRect(unobscuredRect), roundedLayoutSize(FloatSize(documentSize)), scale, false, StickToViewportBounds);
What is the (FloatRect) here for? Doesn’t this compile without it? Also, why FloatSize(documentSize)? Doesn’t this compile without the explicit FloatSize()?
Benjamin Poulain
Comment 3
2014-03-24 12:43:32 PDT
Thanks for the review! (In reply to
comment #2
)
> What is the (FloatRect) here for? Doesn’t this compile without it?
No idea, I'll try.
> Also, why FloatSize(documentSize)? Doesn’t this compile without the explicit FloatSize()?
The conversions between native types and WebCore types are explicit when they have side effects.
Benjamin Poulain
Comment 4
2014-03-24 13:51:40 PDT
Committed
r166188
: <
http://trac.webkit.org/changeset/166188
>
Anders Carlsson
Comment 5
2014-03-24 14:04:12 PDT
(In reply to
comment #2
)
> (From update of
attachment 227528
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=227528&action=review
> > > Source/WebKit2/UIProcess/ios/WKContentView.mm:240 > > + return (FloatRect)FrameView::rectForViewportConstrainedObjects(enclosingLayoutRect(unobscuredRect), roundedLayoutSize(FloatSize(documentSize)), scale, false, StickToViewportBounds); >
Can we put this code somewhere else instead of on FrameView? It's very awkward to have UI process code call member functions on FrameView.
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