#define ENABLE_TIZEN_2D_CANVAS_ZERO_GRADIENT 1 /* Rashmi Shyamasundar (rashmi.s2@samsung.com) : If the gradient size is zero, then the functions fillXXX/strokeXXX should paint nothing */
#define ENABLE_TIZEN_CANVAS2D_FILLMAXWIDTH_NEGATIVE 1 /* Rashmi Shyamasundar(rashmi.s2@samsung.com) : Do not paint if maxwidth is zero */
-#define ENABLE_TIZEN_SUPPORT_EMOJI 1 /* Sangyong Park(sy302.park@samsung.com) : support emoji */
-
/* JavaScript JIT */
#if ENABLE(JIT)
#define ENABLE_YARR 1
type = formControl->type();
value = formControl->value();
}
-#if ENABLE(TIZEN_SUPPORT_EMOJI)
- else {
- Element* element = frame->document()->focusedNode()->rootEditableElement();
- StringBuilder builder;
-
- if (equalIgnoringCase(element->getAttribute("emoji-allowemoji"), "true"))
- builder.append("allowEmoji=true");
-
- bool allowDecoEmoji = equalIgnoringCase(element->getAttribute("emoji-allowdecoemoji"), "true");
- unsigned type = 1;
- if (allowDecoEmoji && element->hasAttribute("emoji-accept")) {
- Vector<String> list;
- element->getAttribute("emoji-accept").string().split(",", list);
-
- type = 0;
- for (size_t i = 0; i < list.size(); ++i) {
- String typeString = list[i].stripWhiteSpace();
- if (typeString == "*/*") {
- type = 0xf;
- break;
- } else if (typeString == "picture/*")
- type |= 0x8;
- else if (typeString == "emoji/*")
- type |= 0x7;
- else if (typeString == "emoji/square")
- type |= 0x3;
- else if (typeString == "emoji/square20")
- type |= 0x1;
- else if (typeString == "emoji/square-not-20")
- type |= 0x2;
- else if (typeString == "emoji/rect")
- type |= 0x4;
- }
- }
-
- if (allowDecoEmoji && type) {
- if (!builder.isEmpty())
- builder.append("&");
- builder.append("allowDecoEmoji=true");
- if (type != 1) {
- builder.append("&emojiType=");
- builder.append(String::number(type));
- }
- }
-
- value = builder.toString();
- }
-#endif
}
m_page->send(Messages::WebPageProxy::SetInputMethodState(active, type, value));