WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
110727
[chromium] Remove WebLayerTreeView::setViewportSize call
https://bugs.webkit.org/show_bug.cgi?id=110727
Summary
[chromium] Remove WebLayerTreeView::setViewportSize call
Alexandre Elias
Reported
2013-02-24 23:29:23 PST
[chromium] Remove WebLayerTreeView::setViewportSize call
Attachments
Patch
(3.27 KB, patch)
2013-02-24 23:33 PST
,
Alexandre Elias
no flags
Details
Formatted Diff
Diff
Patch
(6.86 KB, patch)
2013-02-27 20:34 PST
,
Alexandre Elias
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alexandre Elias
Comment 1
2013-02-24 23:33:33 PST
Created
attachment 190001
[details]
Patch
Alexandre Elias
Comment 2
2013-02-24 23:44:40 PST
https://codereview.chromium.org/12328080/
will land before this one.
Build Bot
Comment 3
2013-02-25 00:30:24 PST
Comment on
attachment 190001
[details]
Patch
Attachment 190001
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://queues.webkit.org/results/16752009
New failing tests: svg/as-image/img-preserveAspectRatio-support-2.html
WebKit Review Bot
Comment 4
2013-02-25 01:04:05 PST
Comment on
attachment 190001
[details]
Patch
Attachment 190001
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/16678054
New failing tests: compositing/backface-visibility/backface-visibility-hierarchical-transform.html animations/3d/matrix-transform-type-animation.html animations/3d/state-at-end-event-transform.html compositing/nested-direct-image-compositing.html compositing/direct-image-compositing.html compositing/backface-visibility/backface-visibility-non3d.html animations/additive-transform-animations.html animations/3d/replace-filling-transform.html compositing/backface-visibility/backface-visibility-3d.html compositing/clip-change.html compositing/text-on-large-layer.html compositing/layers-inside-overflow-scroll.html compositing/animation/state-at-end-event-transform-layer.html compositing/sibling-positioning.html compositing/generated-content.html compositing/fixed-position-changed-in-composited-layer.html compositing/self-painting-layers.html compositing/text-on-scaled-layer.html compositing/absolute-position-changed-with-composited-parent-layer.html compositing/absolute-position-changed-in-composited-layer.html compositing/flat-with-transformed-child.html compositing/scrollbar-painting.html compositing/preserve-3d-toggle.html compositing/fixed-position-scroll-offset-history-restore.html compositing/backface-visibility/backface-visibility-image.html compositing/compositing-visible-descendant.html compositing/fixed-position-changed-within-composited-parent-layer.html compositing/backface-visibility/backface-visibility-simple.html compositing/backface-visibility/backface-visibility-webgl.html compositing/text-on-scaled-surface.html
James Robinson
Comment 5
2013-02-25 18:02:15 PST
Comment on
attachment 190001
[details]
Patch This part looks fine, but you'll have to sort out the issues on the chromium-side patch and make sure that lands *and* rolls into Source/WebKit/chromium/DEPS before this part can land.
Alexandre Elias
Comment 6
2013-02-27 20:34:41 PST
Created
attachment 190641
[details]
Patch Make DumpRenderTree call setViewportSize
James Robinson
Comment 7
2013-02-27 20:51:21 PST
Comment on
attachment 190641
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=190641&action=review
> Tools/DumpRenderTree/chromium/WebViewHost.cpp:940 > + m_layerTreeView->setViewportSize(webWidget()->size(), deviceViewportSize);
Hmm, this is a bit of a bummer. any way to avoid this?
Alexandre Elias
Comment 8
2013-02-27 21:09:12 PST
No way to avoid it comes to mind, since my patches are moving the responsibility to call this to the embedder. DumpRenderTree is another embedder so it needs a call. I could've left the responsibility to call it in WebKit, in which case it would need to be informed of the physical backing size via an API change. But it doesn't need to know about this for anything else, and it's nice and clean for every coordinate given to WebKit to be in DIP pixels.
James Robinson
Comment 9
2013-02-28 11:00:27 PST
(In reply to
comment #8
)
> No way to avoid it comes to mind, since my patches are moving the responsibility to call this to the embedder. DumpRenderTree is another embedder so it needs a call. > > I could've left the responsibility to call it in WebKit, in which case it would need to be informed of the physical backing size via an API change. But it doesn't need to know about this for anything else, and it's nice and clean for every coordinate given to WebKit to be in DIP pixels.
Does the viewport ever change in DRT? If the answer is no (which I think it is) then we should pass this out as a construction-time parameter. We shouldn't have exposed API in Platform that's only called from DRT
Alexandre Elias
Comment 10
2013-02-28 20:04:33 PST
I see, you prefer it only exposed in webkit_support.h. Unfortunately, some layout tests do call window.resize and break if I try doing setting only at construction time, such as compositing/transitions/transform-on-large-layer.html
James Robinson
Comment 11
2013-02-28 22:07:17 PST
Yeah, I'd like to get rid of it from WebLayerTreeView completely if we don't want WebKit to be setting this generally. But don't let that hold you up here. We can fix it up later for DRT or just wait until DRT goes D-E-D.
Alexandre Elias
Comment 12
2013-03-03 14:12:57 PST
Comment on
attachment 190641
[details]
Patch Source/WebKit/chromium/DEPS rolled past 185621, landing this half.
WebKit Review Bot
Comment 13
2013-03-03 14:17:48 PST
Comment on
attachment 190641
[details]
Patch Clearing flags on attachment: 190641 Committed
r144581
: <
http://trac.webkit.org/changeset/144581
>
WebKit Review Bot
Comment 14
2013-03-03 14:17:52 PST
All reviewed patches have been landed. Closing bug.
jochen
Comment 15
2013-03-03 23:16:33 PST
This change regressed >500 tests on content_shell
Alexandre Elias
Comment 16
2013-03-03 23:32:47 PST
I have a follow-up fix
https://codereview.chromium.org/12374078/
that should hopefully fix them.
Alexandre Elias
Comment 17
2013-03-03 23:51:15 PST
I confirmed
https://codereview.chromium.org/12374078/
fixed the content_shell failures.
jochen
Comment 18
2013-03-03 23:58:53 PST
(In reply to
comment #17
)
> I confirmed
https://codereview.chromium.org/12374078/
fixed the content_shell failures.
Thank you!
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