>> Hi, all
>>
>> I want to cut Qt Webkit, and I add "USE_SYSTEM_MALLOC=1 ENABLE_SVG=0" to
>>  Qt webkit project file.
>
> [...]
>
>> JSHTMLFrameElement.cpp
>> generated\JSHTMLFrameElement.cpp(352) : error C2039: 'getSVGDocument' : is
>> not
>>  member of 'WebCore::HTMLFrameElement'
>>         html\HTMLFrameElement.h(31) : see declaration of
>>         'WebCore::HTMLFrameEle
>
> [...]
>
>> Does anyone know why is this error happened?
>
> AFAIK, the ENABLE_SVG #define is simply not checked everywhere. So effectivle
> a build without this flag is broken ATM.
>
> Best regards,
> -Stephan
>

because these files are generated by script, so there is no #ifdef ,
you can change these code to :
#if 0
    if (!checkNodeSecurity(exec, imp->getSVGDocument(ec)))
        return jsUndefined();


JSC::JSValuePtr result = toJS(exec, WTF::getPtr(imp->getSVGDocument(ec)));
    setDOMException(exec, ec);
    return result;
#else
    return jsUndefined();
#endif

find all the getSVGDocument call in generated diectory, and replace with "return jsUndefined()" , it works.

        baizhenxuan
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to