Dave Hyatt says that the iframe-related compositing code should be generalized to include framesets and <object src="foo.html>. I agree with him! Not fixing this may break compositing layer of sites using framesets inside an iframe, for example.
<rdar://problem/7977609> iframe/compositing propagation should also work for <object> and framesets (39037)
Created attachment 88913 [details] Patch
Comment on attachment 88913 [details] Patch Looks generally good, but I'll r- until we get some layout tests.
Created attachment 89029 [details] Patch
Comment on attachment 89029 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=89029&action=review The code changes look good, but the tests need improvement. > Source/WebCore/ChangeLog:9 > + iframe/compositing propagation should also work for <object> and framesets > + https://bugs.webkit.org/show_bug.cgi?id=39037 > + > + iframe/compositing propagation should also work for <object> and framesets > + https://bugs.webkit.org/show_bug.cgi?id=39037 Duplicated lines here. > Source/WebCore/ChangeLog:11 > + This adds logic to handle <frame> and <object> just like <iframe>. I moved Logic for what? > Source/WebCore/ChangeLog:18 > + some of the accelerated compositing tests from RenderIFrame to RenderPart > + which is the highest base class common to RenderIFrame, RenderFrame and > + RenderEmbeddedObject. I also renamed several ...IFrame... functions to > + ...Frame... and changed them so they work on a RenderPart for determining > + if the renderer is composited. One other detail is that <iframe> and > + <object> never share style since they might be composited. I had to add > + <frame> to that list. These details would be better listed under the methods affected in the list of changed files below. > LayoutTests/compositing/framesets/composited-frame-alignment.html:1 > +<!DOCTYPE html> I think these tests should dump the layer tree (in which case you'll have to either trick the tests to give the same output in WK1 and WK2, or provide separate results). Also, instead of a textual description of what the result should look like, just use red/green boxes to indicate success.
Created attachment 89096 [details] Patch
Committed r83518: <http://trac.webkit.org/changeset/83518>