Changeset 149815 in webkit
- Timestamp:
- May 9, 2013, 9:02:27 AM (12 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/ChangeLog
r149814 r149815 1 2013-05-09 Mike Fenton <mifenton@rim.com> 2 3 [BlackBerry] Style updates required based on new check-webkit-style 4 https://bugs.webkit.org/show_bug.cgi?id=115857 5 6 Reviewed by Rob Buis. 7 8 Update ColorPickerClient and PagePopupBlackBerry 9 to match check-webkit-style updates. 10 11 * WebCoreSupport/ColorPickerClient.cpp: 12 (WebCore::ColorPickerClient::generateHTML): 13 * WebCoreSupport/PagePopupBlackBerry.cpp: 14 (WebCore::setValueAndClosePopupCallback): 15 (WebCore::PagePopupBlackBerry::installDOMFunction): 16 1 17 2013-05-09 Alberto Garcia <agarcia@igalia.com> 2 18 -
trunk/Source/WebKit/blackberry/WebCoreSupport/ColorPickerClient.cpp
r149814 r149815 53 53 source.appendLiteral("<style>\n"); 54 54 // Include CSS file. 55 source.append(popupControlBlackBerryCss, 56 sizeof(popupControlBlackBerryCss)); 55 source.append(popupControlBlackBerryCss, sizeof(popupControlBlackBerryCss)); 57 56 source.appendLiteral("</style>\n<style>"); 58 source.append(colorControlBlackBerryCss, 59 sizeof(colorControlBlackBerryCss)); 57 source.append(colorControlBlackBerryCss, sizeof(colorControlBlackBerryCss)); 60 58 source.appendLiteral("</style></head><body>\n"); 61 59 source.appendLiteral("<script>\n"); -
trunk/Source/WebKit/blackberry/WebCoreSupport/PagePopupBlackBerry.cpp
r140849 r149815 99 99 } 100 100 101 static JSValueRef setValueAndClosePopupCallback(JSContextRef context, 102 JSObjectRef, JSObjectRef, size_t argumentCount, 103 const JSValueRef arguments[], JSValueRef*) 101 static JSValueRef setValueAndClosePopupCallback(JSContextRef context, JSObjectRef, JSObjectRef, size_t argumentCount, const JSValueRef arguments[], JSValueRef*) 104 102 { 105 103 JSValueRef jsRetVal = JSValueMakeUndefined(context); … … 113 111 JSStringGetUTF8CString(string, strArgs.data(), sizeUTF8); 114 112 JSStringRelease(string); 115 JSObjectRef popUpObject = JSValueToObject(context, 116 arguments[argumentCount - 1], 0); 113 JSObjectRef popUpObject = JSValueToObject(context, arguments[argumentCount - 1], 0); 117 114 PagePopupBlackBerry::SharedClientPointer* client = reinterpret_cast<PagePopupBlackBerry::SharedClientPointer*>(JSObjectGetPrivate(popUpObject)); 118 115 … … 159 156 JSContextRef context = ::toRef(exec); 160 157 JSObjectRef globalObject = JSContextGetGlobalObject(context); 161 JSStringRef functionName = JSStringCreateWithUTF8CString( 162 "setValueAndClosePopup"); 163 JSObjectRef function = JSObjectMakeFunctionWithCallback(context, 164 functionName, setValueAndClosePopupCallback); 165 JSObjectSetProperty(context, globalObject, functionName, function, 166 kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly, 0); 158 JSStringRef functionName = JSStringCreateWithUTF8CString("setValueAndClosePopup"); 159 JSObjectRef function = JSObjectMakeFunctionWithCallback(context, functionName, setValueAndClosePopupCallback); 160 JSObjectSetProperty(context, globalObject, functionName, function, kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly, 0); 167 161 168 162 // Register client into DOM … … 183 177 184 178 JSC::PutPropertySlot slot; 185 window->put(window, exec, JSC::Identifier(exec, name), 186 toJS(clientClassObject), slot); 179 window->put(window, exec, JSC::Identifier(exec, name), toJS(clientClassObject), slot); 187 180 188 181 JSClassRelease(clientClass);
Note:
See TracChangeset
for help on using the changeset viewer.