[Webkit-unassigned] [Bug 127876] Extended background should only create margin tiles for pages with background images
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 30 09:28:53 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=127876
Simon Fraser (smfr) <simon.fraser at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #222623|review+ |review-
Flag| |
--- Comment #8 from Simon Fraser (smfr) <simon.fraser at apple.com> 2014-01-30 09:26:17 PST ---
(From update of attachment 222623)
View in context: https://bugs.webkit.org/attachment.cgi?id=222623&action=review
> Source/WebCore/page/FrameView.cpp:2488
> +bool FrameView::shouldExtendBackgroundRect() const
This name doesn't imply to me that it's about extending for background image; why would you not extend the background rect to show color?
> Source/WebCore/page/FrameView.cpp:2520
> + auto documentElement = document->documentElement();
> + auto bodyElement = document->body();
> + auto documentElementRenderer = documentElement ? documentElement->renderer() : nullptr;
> + auto bodyRenderer = bodyElement ? bodyElement->renderer() : nullptr;
> + bool documentHasBackgroundImage = (documentElementRenderer && documentElementRenderer->style().hasBackgroundImage())
> + || (bodyRenderer && bodyRenderer->style().hasBackgroundImage());
We have similar logic in maybe 3 places; it would be nice to share code.
> Source/WebCore/page/Settings.cpp:610
> + m_page->mainFrame().view()->shouldExtendBackgroundRect();
Is this a setter? It reads like a getter, which makes this line seem like a no-op.
> Source/WebCore/rendering/RenderLayerCompositor.cpp:2973
> +void RenderLayerCompositor::setExtendedBackgroundColor(const Color& color)
I feel like this name should have "root" in it somewhere.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list