[Webkit-unassigned] [Bug 42799] pixelWidth/posWidth are processed incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 23 07:50:43 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42799





--- Comment #14 from Darin Adler <darin at apple.com>  2010-09-23 07:50:43 PST ---
(In reply to comment #13)
> Thanks very much for the review. Do you mean the handling of pixel/pos should be put in CSSStyleDeclaration class? However, I don't think it should be put there, because pixel/pos-prefix properties are not CSS property, but CSSOM property accessed by script. And, if we put the logic in there, when setting 'pixelWidth', the CSSStyleDeclaration::setProperty will be invoked as following:
>   setProperty('width', PREFIX_PIXEL, 100, ...);
> The interface then looks very weird, people don't know what the interface intends to do.
> 
> Isn't it better to let CSSStyleDeclaration do only what it should do, that is to get/set primitive css properties? It might be better to put transformation code between primitive css properties and cssom properties in bindings.

Yes, we should put it on CSSStyleDeclaration. If you don’t like having that code in CSSStyleDeclaration we can just call over to Element and put the bulk of the work in that class.

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