[Webkit-unassigned] [Bug 107041] Tighten RenderLayerModelObject subclass constuctors to operate on ContainerNodes.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 16 13:08:32 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=107041
Simon Fraser (smfr) <simon.fraser at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #183023|review? |review+
Flag| |
--- Comment #3 from Simon Fraser (smfr) <simon.fraser at apple.com> 2013-01-16 13:10:15 PST ---
(From update of attachment 183023)
View in context: https://bugs.webkit.org/attachment.cgi?id=183023&action=review
> Source/WebCore/ChangeLog:8
> + The only non-ContainerNodes show up in the text rendering code. Tighter typing is better in general. It also enables better code
I can't parse "The only non-ContainerNodes show up in the text rendering code"
> Source/WebCore/ChangeLog:28
> + (RenderBlock):
Remove useless lines like this.
> Source/WebCore/rendering/RenderFullScreen.cpp:59
> +RenderFullScreen::RenderFullScreen(Document* document)
> + : RenderDeprecatedFlexibleBox(document)
Is this always the Document, even if some non-document element is taken fullscreen?
> Source/WebCore/rendering/RenderLayerModelObject.h:51
> + ContainerNode* node() const { return toContainerNode(RenderObject::node()); }
A comment noting whether this can be null might be helpful.
> Source/WebCore/rendering/RenderObject.cpp:148
> - if (contentData && !contentData->next() && contentData->isImage() && doc != node && !node->isPseudoElement()) {
> - RenderImage* image = new (arena) RenderImage(node);
> + if (contentData && !contentData->next() && contentData->isImage() && !element->isPseudoElement()) {
> + RenderImage* image = new (arena) RenderImage(element);
So the element can never be the Document? Would be nice for the Changelog to note this.
> Source/WebCore/rendering/RenderTextTrackCue.cpp:37
> RenderTextTrackCue::RenderTextTrackCue(TextTrackCueBox* node)
> - : RenderBlock(static_cast<Node*>(node))
> + : RenderBlock(node)
Ugh, so confusing for something called TextTrackCueBox to be en Element (not a RenderBox*)..
--
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