[webkit-reviews] review denied: [Bug 109591] RenderLayer::hasOutOfFlowPositionedDescendant should not be affected by invisible children : [Attachment 187880] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 12 09:14:24 PST 2013

Simon Fraser (smfr) <simon.fraser at apple.com> has denied vollick at chromium.org's
request for review:
Bug 109591: RenderLayer::hasOutOfFlowPositionedDescendant should not be
affected by invisible children

Attachment 187880: Patch

------- Additional Comments from Simon Fraser (smfr) <simon.fraser at apple.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=187880&action=review

> Source/WebCore/ChangeLog:10
> +	   Currently, we do not check visibility when setting the
> +	   m_hasOutOfFlowPositionedDescendant flag, but we should. With this
> +	   we do. We also dirty the flag when visibility changes.

I'm a little concerned that we're spending time maintaining the
m_hasOutOfFlowPositionedDescendant when most of the time it's unused.

> Source/WebCore/rendering/RenderLayer.cpp:1010
> +	       bool childIsOutOfFlowPositioned = child->renderer() &&
child->renderer()->isOutOfFlowPositioned() && child->isVisuallyNonEmpty();

isVisuallyNonEmpty() is a bit expensive to call here. I think you should just
check the visibility flags (hasVisibleContent/hasVisibleDescendant).

> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> +   "http://www.w3.org/TR/html4/loose.dtd">

Just <!DOCTYPE html> please

> +<html lang="en">

No need for lang.

> +  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

No need for this.

> +	   var layerTree = window.internals.layerTreeAsText(document);

Doesn't layerTreeAsText() update layout already?

More information about the webkit-reviews mailing list