[Webkit-unassigned] [Bug 12609] Any SVG element will create renderers even when children of HTML elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 23 00:56:13 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12609


mjs at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #13343|review?                     |review-
               Flag|                            |




------- Comment #9 from mjs at apple.com  2007-02-23 00:56 PDT -------
(From update of attachment 13343)
+    if (parentNode() && (parentNode()->isSVGElement() ||
+        parentNode()->isDocumentNode() ||
+        parentNode()->namespaceURI() != HTMLNames::xhtmlNamespaceURI))
+        return StyledElement::rendererIsNeeded(style);
+
+    return false;

1) I don't think you should check for the HTML namespace, instead, you should
check that the parent is in the SVG namespace (or an SVG element or whatever).

2) I don't think the document node check is right - <circle> as a root of a
document should not render.

3) This should specifically allow the <svg:svg> element to render inside a
parent of any namespace.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list