Skip to content

Commit

Permalink
Fall back to a slow path for content under <foreignObject>.
Browse files Browse the repository at this point in the history
This avoids even more complicated code in GraphicsLayerUpdater.
I don't think the performance will be a big problem in the short
term, and longer-term CAP obsoletes this code.

Bug: 968488

Change-Id: Id88ee31b47449ce752b004dd911b3918d035fc9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636858
Commit-Queue: Chris Harrelson <[email protected]>
Reviewed-by: Xianzhu Wang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#665178}
  • Loading branch information
chrishtr authored and chromium-wpt-export-bot committed May 31, 2019
1 parent 50683f7 commit 948c747
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!doctype HTML>
<title>Compositing inside a non-stacking-context object works reference</title>
<object style="display: block; backface-visibility:hidden">
<svg>
<foreignObject>
<div>Test</div>
</foreignObject>
</svg>
</object>
13 changes: 13 additions & 0 deletions svg/extensibility/foreignObject/composited-inside-object.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype HTML>
<title>Compositing inside a non-stacking-context object works.</title>
<link rel="author" title="Chris Harrelson" href="[email protected]">
<link rel="match" href="composited-inside-object-ref.html">
<link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#embedded-ForeignObjectElement"/>

<object style="display: block; backface-visibility:hidden">
<svg>
<foreignObject>
<div style="will-change: transform">Test</div>
</foreignObject>
</svg>
</object>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype HTML>
<title>Basic backface-visibility compositing works referece</title>
<title>Basic backface-visibility compositing works reference</title>
<link rel="author" title="Chris Harrelson" href="[email protected]">
<svg>
<foreignObject>
Expand Down

0 comments on commit 948c747

Please sign in to comment.