wml

for VC

1.WebKitLibraries\win\tools\vsprops    FeatureDefines.vsprops
<UserMacro
Name="ENABLE_WML"
Value="ENABLE_WML"
PerformEnvironmentSet="true"
/>
2.WebCore
DerivedSource.cpp
remove
#include "WMLElementFactory.cpp"
#include "WMLNames.cpp"
3.
WebCore/DerivedSources
change WebCore/wml/WMLElementFactory.cpp

change WebCore/wml/WMLNames.cpp

to be included in the project.


for linux

1.ENABLE_WML

export "ENABLE_WML=true" or change it in "Platform.h"
2.LOCAL_C_INCLUDES 
3.LOCAL_SRC_FILES //cant compile ok
4.webkit\Source\WebCore\Android.derived.mk 
wml css
need delete "obj\STATIC_LIBRARIES\libwebcore_intermediates\WebCore\"

5.FrameloaderClientAndroid.canShowMIMEType, so we change DOMImplementation::isTextMIMEType


6.autofill
"autoFill->formFieldFocused(static_cast<HTMLFormControlElement*>(focusNode));"
to
"
if (!focusNode->isWMLElement()){
   LOGY("lyftest handleMouseClick autofill html");
   autoFill->formFieldFocused(static_cast<HTMLFormControlElement*>(focusNode));
 }else{
   LOGY("lyftest handleMouseClick autofill wml");
    ;//autoFill->formFieldFocused(static_cast<WMLInputElement*>(focusNode));
}
"
7.input focus
a.WMLInputElement.cpp
"
void WMLInputElement::updateFocusAppearance(bool restorePreviousSelection)
{
    //InputElement::updateFocusAppearance(m_data, this, this, restorePreviousSelection);//comment this
}
"
8. password
a.WMLAElement.cpp
"
        if (isLinkClick(event)) {
            String aa = stripLeadingAndTrailingHTMLSpaces(getAttribute(HTMLNames::hrefAttr));
            String bb = substituteVariableReferences(aa, document(), WMLVariableEscapingEscape);
            handleLinkClick(event, document(), bb , target(), event);
            return;
        }
"
b.WMLElement.h
"
namespace WebCore {
class Event;// add new
class WMLElement : public StyledElement {
"
"
virtual void defaultEventHandler(Event* event);//add new
"
c.WMLElement.cpp
"
#include "Event.h"
#include "RenderTextControl.h"
"
"
void WMLElement::defaultEventHandler(Event* event)
{
if (event->type() == eventNames().webkitEditableContentChangedEvent
&& renderer() && renderer()->isTextControl())
{
toRenderTextControl(renderer())->subtreeHasChanged();
return;
}


StyledElement::defaultEventHandler(event);
}
"

10. WMLDoElement WMLEventHandlingElement

and 

insertedIntoDocument


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值