[Webkit-unassigned] [Bug 9752] %-sizing of elements with a html parent is broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 31 05:03:58 PST 2007


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





------- Comment #3 from macdome at opendarwin.org  2007-01-31 05:03 PDT -------
The function which would need to change is:
float SVGLength::PercentageOfViewport(float value, const SVGStyledElement*
context, SVGLengthMode mode)


    } else if (viewportElement && viewportElement->isSVG()) {
        const SVGSVGElement* svg = static_cast<const
SVGSVGElement*>(viewportElement);
        if (svg->hasAttribute(SVGNames::viewBoxAttr)) {
            width = svg->viewBox().width();
            height = svg->viewBox().height();
        } else {
            width = svg->width().value();
            height = svg->height().value();
        }
    }

Possibly that if should just check to see if the <svg> has a renderer() and if
it does, use that width/height.  Seems a little hacky however.  Really SVG
length resolution just needs to move entirely into the rendering tree.


-- 
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