[Webkit-unassigned] [Bug 12159] Most of CSSComputedStyleDeclaration, cssparser.cpp, cssstyleselector.cpp should be autogenerated

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 16 00:48:58 PDT 2007


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


ap at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com




------- Comment #9 from ap at webkit.org  2007-10-16 00:48 PDT -------
(In reply to comment #8)

> Can we switch to a simpler technique that doesn't involve templates?

  I thought plain overloading would be unsafe, because missing constructors
wouldn't be detected - there are already constructors that take int and
unsigned.

  One option I thought of (and actually started to implement) was to use a
separate construction method, something like

    template<typename T> static CSSPrimitiveValue* fromEnum(T);

  But that looked even worse than having to explicitly construct PassRefPtr in
a few places.


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