Web Inspector: [Canvas] support 2D canvas instrumentation from the inspector C++ code
https://bugs.webkit.org/show_bug.cgi?id=97203

Patch by Andrey Adaikin <aandrey@chromium.org> on 2012-09-24
Reviewed by Yury Semikhatsky.

Implements wrapping a 2D canvas context through the injected canvas module script facility.

* bindings/js/JSHTMLCanvasElementCustom.cpp:
(WebCore::JSHTMLCanvasElement::getContext):
* bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
(WebCore::V8HTMLCanvasElement::getContextCallback):
* inspector/InjectedScriptCanvasModule.cpp:
(WebCore::InjectedScriptCanvasModule::wrapCanvas2DContext):
(WebCore):
(WebCore::InjectedScriptCanvasModule::wrapWebGLContext):
(WebCore::InjectedScriptCanvasModule::callWrapContextFunction):
* inspector/InjectedScriptCanvasModule.h:
(InjectedScriptCanvasModule):
* inspector/InspectorCanvasAgent.cpp:
(WebCore::InspectorCanvasAgent::wrapCanvas2DRenderingContextForInstrumentation):
(WebCore):
* inspector/InspectorCanvasAgent.h:
(InspectorCanvasAgent):
* inspector/InspectorCanvasInstrumentation.h:
(WebCore::InspectorInstrumentation::wrapCanvas2DRenderingContextForInstrumentation):
(WebCore):
* inspector/InspectorInstrumentation.h:
(InspectorInstrumentation):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Rebaseline several test cases in Skipped list
https://bugs.webkit.org/show_bug.cgi?id=97448

Unreviewed EFL rebaseline.

Rebaseline several test cases in the Skipped file and unskip
them.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-24

* platform/efl/Skipped:
* platform/efl/svg/as-image/animated-svg-as-image-expected.png: Added.
* platform/efl/svg/as-image/animated-svg-as-image-expected.txt:
* platform/efl/svg/as-image/animated-svg-as-image-no-fixed-intrinsic-size-expected.png: Added.
* platform/efl/svg/as-image/animated-svg-as-image-no-fixed-intrinsic-size-expected.txt:
* platform/efl/svg/as-image/animated-svg-as-image-same-image-expected.png: Added.
* platform/efl/svg/as-image/animated-svg-as-image-same-image-expected.txt:
* platform/efl/svg/as-image/img-preserveAspectRatio-support-1-expected.png: Added.
* platform/efl/svg/as-image/img-preserveAspectRatio-support-1-expected.txt:
* platform/efl/svg/as-image/img-preserveAspectRatio-support-2-expected.png: Added.
* platform/efl/svg/as-image/img-preserveAspectRatio-support-2-expected.txt:
* platform/efl/svg/as-image/same-image-two-instances-expected.png: Added.
* platform/efl/svg/as-image/same-image-two-instances-expected.txt:
* platform/efl/svg/as-image/svg-image-change-content-size-expected.png: Added.
* platform/efl/svg/as-image/svg-image-change-content-size-expected.txt:
* platform/efl/svg/batik/masking/maskRegions-expected.png: Added.
* platform/efl/svg/batik/masking/maskRegions-expected.txt:
* platform/efl/svg/clip-path/deep-nested-clip-in-mask-different-unitTypes-expected.png: Added.
* platform/efl/svg/clip-path/deep-nested-clip-in-mask-different-unitTypes-expected.txt:
* platform/efl/svg/css/path-gradient-stroke-shadow-expected.png: Added.
* platform/efl/svg/css/path-gradient-stroke-shadow-expected.txt:
* platform/efl/svg/dom/css-transforms-expected.png: Added.
* platform/efl/svg/dom/css-transforms-expected.txt: Added.
* platform/efl/svg/hixie/error/012-expected.png: Added.
* platform/efl/svg/hixie/error/012-expected.txt:
* platform/efl/svg/hixie/error/013-expected.png: Added.
* platform/efl/svg/hixie/error/013-expected.txt:
* platform/efl/svg/hixie/mixed/003-expected.png: Added.
* platform/efl/svg/hixie/mixed/003-expected.txt:
* platform/efl/svg/hixie/mixed/004-expected.png: Added.
* platform/efl/svg/hixie/mixed/004-expected.txt:
* platform/efl/svg/hixie/mixed/005-expected.png: Added.
* platform/efl/svg/hixie/mixed/005-expected.txt:
* platform/efl/svg/hixie/mixed/006-expected.png: Added.
* platform/efl/svg/hixie/mixed/006-expected.txt:
* platform/efl/svg/hixie/mixed/007-expected.png: Added.
* platform/efl/svg/hixie/mixed/007-expected.txt:
* platform/efl/svg/hixie/mixed/008-expected.png: Added.
* platform/efl/svg/hixie/mixed/008-expected.txt:
* platform/efl/svg/hixie/mixed/009-expected.png: Added.
* platform/efl/svg/hixie/mixed/009-expected.txt:
* platform/efl/svg/hixie/mixed/010-expected.png: Added.
* platform/efl/svg/hixie/mixed/010-expected.txt:
* platform/efl/svg/hixie/mixed/011-expected.png: Added.
* platform/efl/svg/hixie/mixed/011-expected.txt:
* platform/efl/svg/hixie/perf/007-expected.png: Added.
* platform/efl/svg/hixie/perf/007-expected.txt:
* platform/efl/svg/hixie/processing-model/003-expected.png: Added.
* platform/efl/svg/hixie/processing-model/003-expected.txt:
* platform/efl/svg/hixie/processing-model/004-expected.png: Added.
* platform/efl/svg/hixie/processing-model/004-expected.txt:
* platform/efl/svg/hixie/rendering-model/003-expected.png: Added.
* platform/efl/svg/hixie/rendering-model/003-expected.txt:
* platform/efl/svg/hixie/rendering-model/004-expected.png: Added.
* platform/efl/svg/hixie/rendering-model/004-expected.txt:
* platform/efl/svg/hixie/text/003-expected.png: Added.
* platform/efl/svg/hixie/text/003-expected.txt:
* platform/efl/svg/in-html/by-reference-expected.png: Added.
* platform/efl/svg/in-html/by-reference-expected.txt:
* platform/efl/svg/in-html/circle-expected.png: Added.
* platform/efl/svg/in-html/circle-expected.txt:
* platform/efl/svg/overflow/overflow-on-inner-svg-element-expected.png: Added.
* platform/efl/svg/overflow/overflow-on-inner-svg-element-expected.txt:
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-auto-expected.png: Added.
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-auto-expected.txt:
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-defaults-expected.png: Added.
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-defaults-expected.txt:
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-hidden-expected.png: Added.
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-hidden-expected.txt:
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-scroll-expected.png: Added.
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-scroll-expected.txt:
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-visible-expected.png: Added.
* platform/efl/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-visible-expected.txt:
* platform/efl/svg/repaint/inner-svg-change-viewPort-relative-expected.png: Added.
* platform/efl/svg/repaint/inner-svg-change-viewPort-relative-expected.txt: Added.
* platform/efl/svg/transforms/animated-path-inside-transformed-html-expected.png: Added.
* platform/efl/svg/transforms/animated-path-inside-transformed-html-expected.txt:
* platform/efl/svg/transforms/svg-css-transforms-clip-path-expected.png: Added.
* platform/efl/svg/transforms/svg-css-transforms-clip-path-expected.txt:
* platform/efl/svg/transforms/svg-css-transforms-expected.png: Added.
* platform/efl/svg/transforms/svg-css-transforms-expected.txt:
* platform/efl/svg/transforms/text-with-pattern-inside-transformed-html-expected.png: Added.
* platform/efl/svg/transforms/text-with-pattern-inside-transformed-html-expected.txt:
* platform/efl/svg/transforms/text-with-pattern-with-svg-transform-expected.png: Added.
* platform/efl/svg/transforms/text-with-pattern-with-svg-transform-expected.txt:
* platform/efl/svg/wicd/rightsizing-grid-expected.png: Added.
* platform/efl/svg/wicd/rightsizing-grid-expected.txt:
* platform/efl/svg/wicd/test-rightsizing-a-expected.png: Added.
* platform/efl/svg/wicd/test-rightsizing-a-expected.txt:
* platform/efl/svg/wicd/test-rightsizing-b-expected.png: Added.
* platform/efl/svg/wicd/test-rightsizing-b-expected.txt:
* platform/efl/svg/wicd/test-scalable-background-image1-expected.png: Added.
* platform/efl/svg/wicd/test-scalable-background-image1-expected.txt:
* platform/efl/svg/wicd/test-scalable-background-image2-expected.png: Added.
* platform/efl/svg/wicd/test-scalable-background-image2-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129354 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Open resource dialog has too many false positive matches.
https://bugs.webkit.org/show_bug.cgi?id=97332

Reviewed by Alexander Pavlov.

Source/WebCore:

Improved open resource dialog filtering to make the amount of false
positive search results less.

* inspector/front-end/FilteredItemSelectionDialog.js:
(WebInspector.FilteredItemSelectionDialog.prototype._innerCreateSearchRegExp):
(WebInspector.FilteredItemSelectionDialog.prototype._highlightItem.get var):
(WebInspector.FilteredItemSelectionDialog.prototype._highlightItem):

LayoutTests:

* inspector/filtered-item-selection-dialog-filtering-expected.txt:
* inspector/filtered-item-selection-dialog-filtering.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Add cookie database API
https://bugs.webkit.org/show_bug.cgi?id=97102

Reviewed by Antonio Gomes.

Source/WebCore:

Add a CookieManager method that takes a list of strings to parse
instead of just one string. Expose CookieParser::parseOneCookie.

Reviewed internally by Otto D. Cheung.

No change in behavior, no new tests.

* platform/blackberry/CookieManager.cpp:
(WebCore::CookieManager::setCookies):
(WebCore):
* platform/blackberry/CookieManager.h:
* platform/blackberry/CookieParser.cpp:
(WebCore::CookieParser::parseOneCookie):
(WebCore):
* platform/blackberry/CookieParser.h:
(CookieParser):

Source/WebKit:

Add cookie database file to build system.

Reviewed internally by Otto D. Cheung.

* PlatformBlackBerry.cmake:

Source/WebKit/blackberry:

The cookie database is exposed through WebCookieJar, which has only two
methods: cookies() and setCookies().

Also add a new WebString::fromUTF8 overload that takes a const char*
and a length, in order to avoid a strlen call when converting from
other string classes to WebString. This is useful for callers of the
new cookie API when converting cookies to WebString.

Reviewed internally by Otto D. Cheung.

PR 209282

* Api/WebCookieJar.cpp: Added.
(WebKit):
(BlackBerry::WebKit::WebCookieJar::WebCookieJar):
(BlackBerry::WebKit::WebCookieJar::cookies):
(BlackBerry::WebKit::WebCookieJar::setCookies):
* Api/WebCookieJar.h: Added.
(WebKit):
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::WebPagePrivate):
(BlackBerry::WebKit::WebPagePrivate::~WebPagePrivate):
(BlackBerry::WebKit::WebPage::cookieJar):
(WebKit):
* Api/WebPage.h:
(WebKit):
* Api/WebPage_p.h:
(WebKit):
(WebPagePrivate):
* Api/WebString.cpp:
(BlackBerry::WebKit::WebString::fromUtf8):
(WebKit):
* Api/WebString.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129356 268f45cc-cd09-0410-ab3c-d52691b4dbfc