Bug 173732

Summary: REGRESSION(r217695): Offscreen/overflowed items not being rendered while translating in-frame
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, buildbot, commit-queue, kling, simon.fraser, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=203613
Attachments:
Description Flags
patch
none
patch
simon.fraser: review+, buildbot: commit-queue-
Archive of layout-test-results from ews121 for ios-simulator-wk2
none
patch
none
patch none

Description Antti Koivisto 2017-06-22 13:45:27 PDT
We need backing for layers that will animate to view.
Comment 1 Antti Koivisto 2017-06-22 13:47:58 PDT
<rdar://problem/32778748>
Comment 2 Antti Koivisto 2017-06-22 14:24:29 PDT
Created attachment 313661 [details]
patch
Comment 3 Antti Koivisto 2017-06-22 14:30:01 PDT
Created attachment 313662 [details]
patch
Comment 4 Simon Fraser (smfr) 2017-06-22 14:39:30 PDT
Comment on attachment 313662 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=313662&action=review

> Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:1399
> +    auto bounds = FloatRect(m_boundsOrigin, size());
> +    if (auto extent = animationExtent()) {

Did you verify that bounds and extent are in the same coordinate space?

> Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:2303
> +            || commitState.ancestorWithTransformAnimationIntersectsCoverageRect // FIXME: Compute backing exactly for descendants of animating layers .

No space before period.

> LayoutTests/compositing/backing/transform-transition-from-outside-view.html:33
> +        .dot {
> +            position: absolute;
> +            top: 0;
> +            left: 0;
> +            height: 4px;
> +            width: 4px;
> +            background-color: silver;
> +        }

You're not using dots.

> LayoutTests/compositing/backing/transform-transition-from-outside-view.html:36
> +            -webkit-transform: translateX(0px);

Transforms are unprefixed.
Comment 5 Build Bot 2017-06-22 15:58:15 PDT
Comment on attachment 313662 [details]
patch

Attachment 313662 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/3980253

New failing tests:
compositing/backing/transform-transition-from-outside-view.html
Comment 6 Build Bot 2017-06-22 15:58:16 PDT
Created attachment 313668 [details]
Archive of layout-test-results from ews121 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews121  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.5
Comment 7 Antti Koivisto 2017-06-22 16:47:10 PDT
> Did you verify that bounds and extent are in the same coordinate space?

Both seem to be in the coordinate space used by RenderLayer::calculateLayerBounds so I think this is correct.
Comment 8 Antti Koivisto 2017-06-22 18:44:57 PDT
Created attachment 313682 [details]
patch
Comment 9 Antti Koivisto 2017-06-22 20:55:12 PDT
Created attachment 313687 [details]
patch
Comment 10 WebKit Commit Bot 2017-06-22 21:34:18 PDT
Comment on attachment 313687 [details]
patch

Clearing flags on attachment: 313687

Committed r218735: <http://trac.webkit.org/changeset/218735>
Comment 11 WebKit Commit Bot 2017-06-22 21:34:19 PDT
All reviewed patches have been landed.  Closing bug.