W dniu 30 sierpnia 2011 11:59 użytkownik ~suv <suv-sf@...58...> napisał:
Why are e.g. the attributes
"color-interpolation:sRGB;color-interpolation-filters:linearRGB;"
added each time when pasting a style (e.g. red fill, black stroke, width 1px) or converting a stroke to path, without any filter effects in use in the current document? Are they required for each individual object or could they be removed [2]?
Those are the default values, so they are superfluous.
I think this is because there is a risk that non-default values will inherit from ancestors and cause the pasted object to look differently than it did when copying. Most of those attributes are unnecessary and the paste code should determine which of the attributes differ from the parent, and only explicitly set those.
The text glitches are caused by missing calls to _markForUpdate() and/or _markForRendering() in the rendering tree.
Regards, Krzysztof