When EFL MiniBrowser goes to www.youtube.com, about 900 RenderLayers are created with 259.45 MB. Chrome seems to only have 5 layers and 1.24 MB memory use.
A callstack when RenderLayer is created. Breakpoint 1, 0x00007ffff6b41c04 in WebCore::RenderLayer::RenderLayer(WebCore::RenderLayerModelObject&) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 (gdb) bt #0 0x00007ffff6b41c04 in WebCore::RenderLayer::RenderLayer(WebCore::RenderLayerModelObject&) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #1 0x00007ffff6b6bc56 in WebCore::RenderLayerModelObject::createLayer() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #2 0x00007ffff6b6c5c5 in WebCore::RenderLayerModelObject::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #3 0x00007ffff6adc704 in WebCore::RenderBox::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #4 0x00007ffff6aa0c3c in WebCore::RenderBlock::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #5 0x00007ffff6ab52ac in WebCore::RenderBlockFlow::styleDidChange(WebCore::StyleDifference, WebCore::RenderStyle const*) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #6 0x00007ffff6c79b17 in WebCore::Style::attachRenderTree(WebCore::Element&, WebCore::RenderStyle&, WebCore::Style::RenderTreePosition&, WTF::PassRefPtr<WebCore::RenderStyle>) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #7 0x00007ffff6c7a7a7 in WebCore::Style::resolveTree(WebCore::Element&, WebCore::RenderStyle&, WebCore::Style::RenderTreePosition&, WebCore::Style::Change) [clone .part.168] () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #8 0x00007ffff6c7b26a in WebCore::Style::resolveTree(WebCore::Document&, WebCore::Style::Change) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #9 0x00007ffff660a2d7 in WebCore::Document::recalcStyle(WebCore::Style::Change) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #10 0x00007ffff660aeed in WebCore::Document::finishedParsing() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #11 0x00007ffff67d718e in WebCore::HTMLDocumentParser::prepareToStopParsing() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #12 0x00007ffff67d311e in WebCore::HTMLDocumentParser::finish() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #13 0x00007ffff686f4d2 in WebCore::DocumentWriter::end() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #14 0x00007ffff6865177 in WebCore::DocumentLoader::finishedLoading(double) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #15 0x00007ffff68675fc in WebCore::DocumentLoader::maybeLoadEmpty() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #16 0x00007ffff6868b14 in WebCore::DocumentLoader::startLoadingMainResource() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #17 0x00007ffff687a406 in WebCore::FrameLoader::init() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #18 0x00007ffff64a20b4 in WebKit::WebFrame::createWithCoreMainFrame(WebKit::WebPage*, WebCore::Frame*) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #19 0x00007ffff64b80d6 in WebKit::WebPage::WebPage(unsigned long, WebKit::WebPageCreationParameters const&) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #20 0x00007ffff64b885f in WebKit::WebPage::create(unsigned long, WebKit::WebPageCreationParameters const&) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #21 0x00007ffff642cf55 in WebKit::WebProcess::createWebPage(unsigned long, WebKit::WebPageCreationParameters const&) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #22 0x00007ffff654d69e in WebKit::WebProcess::didReceiveWebProcessMessage(IPC::Connection*, IPC::MessageDecoder&) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #23 0x00007ffff63150d4 in IPC::Connection::dispatchMessage(std::unique_ptr<IPC::MessageDecoder, std::default_delete<IPC::MessageDecoder> >) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #24 0x00007ffff63159ec in IPC::Connection::dispatchOneMessage() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #25 0x00007ffff767bd43 in WTF::RunLoop::performWork() () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #26 0x00007ffff3a8a8bf in _ecore_pipe_handler_call (p=p@entry=0x418f20, buf=0x482ac0 "W", len=<optimized out>) at lib/ecore/ecore_pipe.c:528 #27 0x00007ffff3a8b08a in _ecore_pipe_read (data=0x418f20, fd_handler=<optimized out>) at lib/ecore/ecore_pipe.c:655 #28 0x00007ffff3a89e91 in _ecore_call_fd_cb (fd_handler=0x417040, data=<optimized out>, func=<optimized out>) at lib/ecore/ecore_private.h:383 #29 _ecore_main_fd_handlers_call () at lib/ecore/ecore_main.c:1684 #30 _ecore_main_loop_iterate_internal (once_only=once_only@entry=0) at lib/ecore/ecore_main.c:1935 #31 0x00007ffff3a8a0b7 in ecore_main_loop_begin () at lib/ecore/ecore_main.c:983 #32 0x00007ffff652db1d in int WebKit::ChildProcessMain<WebKit::WebProcess, WebKit::WebProcessMain>(int, char**) () from /home/gyuyoung/webkit/WebKit/WebKitBuild/Release/lib/libewebkit2.so.1 #33 0x00007ffff50d3de5 in __libc_start_main (main=0x4007b0 <main>, argc=2, ubp_av=0x7fffffffdc78, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdc68) at libc-start.c:260 #34 0x0000000000400804 in _start ()
Closing some bugs that probably only affect EFL. Please leave a comment if you feel this bug was closed in error.