Changeset 128226 in webkit
- Timestamp:
- Sep 11, 2012 2:29:59 PM (12 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/ChangeLog
r128211 r128226 1 2012-09-11 Rob Buis <rbuis@rim.com> 2 3 [BlackBerry] make pickers/dialogs use appendLiteral 4 https://bugs.webkit.org/show_bug.cgi?id=96424 5 6 Reviewed by Antonio Gomes. 7 8 PR 204032 9 10 Other pickers were updated in r128204. 11 12 * WebCoreSupport/ColorPickerClient.cpp: 13 (WebCore::ColorPickerClient::generateHTML): 14 * WebCoreSupport/PagePopupBlackBerry.cpp: 15 (WebCore::PagePopupBlackBerry::generateHTML): 16 1 17 2012-09-11 Konrad Piascik <kpiascik@rim.com> 2 18 -
trunk/Source/WebKit/blackberry/WebCoreSupport/ColorPickerClient.cpp
r127817 r128226 46 46 { 47 47 StringBuilder source; 48 source.append ("<style>\n");48 source.appendLiteral("<style>\n"); 49 49 // Include CSS file. 50 50 source.append(popupControlBlackBerryCss, 51 51 sizeof(popupControlBlackBerryCss)); 52 source.append ("</style>\n<style>");52 source.appendLiteral("</style>\n<style>"); 53 53 source.append(colorControlBlackBerryCss, 54 54 sizeof(colorControlBlackBerryCss)); 55 source.append ("</style></head><body>\n");56 source.append ("<script>\n");57 source.append ("window.addEventListener('load', function () {");58 source.append ("window.popupcontrol.show(");55 source.appendLiteral("</style></head><body>\n"); 56 source.appendLiteral("<script>\n"); 57 source.appendLiteral("window.addEventListener('load', function () {"); 58 source.appendLiteral("window.popupcontrol.show("); 59 59 if (!value.isEmpty()) 60 60 source.append("\"" + String(value.impl()) + "\"); \n }); \n"); 61 61 else 62 source.append ("); \n }); \n");62 source.appendLiteral("); \n }); \n"); 63 63 source.append(colorControlBlackBerryJs, sizeof(colorControlBlackBerryJs)); 64 source.append ("</script>\n");65 source.append ("</body> </html>\n");64 source.appendLiteral("</script>\n"); 65 source.appendLiteral("</body> </html>\n"); 66 66 m_source = source.toString(); 67 67 } -
trunk/Source/WebKit/blackberry/WebCoreSupport/PagePopupBlackBerry.cpp
r127191 r128226 82 82 // FIXME: the hardcoding padding will be removed soon. 83 83 int screenWidth = webpage->d->screenSize().width() - PADDING; 84 source.append ("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n");84 source.appendLiteral("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n"); 85 85 source.append("<meta name=\"viewport\" content=\"width=" + String::number(screenWidth)); 86 source.append ("; user-scalable=no\" />\n");86 source.appendLiteral("; user-scalable=no\" />\n"); 87 87 writer->addData(source.toString().utf8().data(), source.toString().utf8().length()); 88 88
Note: See TracChangeset
for help on using the changeset viewer.