You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Tonny Kohar <to...@kiyut.com> on 2003/09/29 19:01:44 UTC
gvt and CSSStyle
hi
Is there any relation between GVT and CSSStyleDeclaration?
because trying to get CSSStyleDeclaration on SVGStylable.getStyle() will
throws NullPointerException without loading GVT. But if GVT is loaded it
is ok.
btw, bug #21919 can be closed due to CSS relative uri fixed (#21487),
see my comment on bugzilla
Regards
Tonny Kohar
http://www.kiyut.com
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: gvt and CSSStyle
Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Tonny,
Tonny Kohar wrote:
> Is there any relation between GVT and CSSStyleDeclaration?
> because trying to get CSSStyleDeclaration on SVGStylable.getStyle() will
> throws NullPointerException without loading GVT. But if GVT is loaded it
> is ok.
The issue is that the CSSEngine is not bootstrapped until we build the
BridgeContext - in preparation for constructing the GVT. I also think
we need some of the geometry information that GVT provides to handle some
units (like percentages of viewport).
To put it a little clearer in general the CSSEngine is independent of the
bridge/gvt, however the bridge/GVT packages currently provide the only
implementation of some interfaces needed for the CSSEngine to function.
> btw, bug #21919 can be closed due to CSS relative uri fixed (#21487),
> see my comment on bugzilla
Ok, thanks for the feedback, I am leaning towards keeping the current behavior
as generally a null cssBase represents a serious bug and in that case I want
Batik to die as quickly as possible rather than limping along generating bad URI's.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org