[BlackBerry] Fix crash in InputHandler spell checking.
https://bugs.webkit.org/show_bug.cgi?id=92763

Reviewed by Antonio Gomes.

PR 185574.

Fix crash in getSpellChecker by guarding the calling paths
to ensure that m_currentFocusElement is valid.

Also add ASSERTs for previous crash.

* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::spellCheckingRequestProcessed):
(BlackBerry::WebKit::InputHandler::spellCheckingRequestCancelled):
(BlackBerry::WebKit::InputHandler::getSpellChecker):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add MIPS add32 function
https://bugs.webkit.org/show_bug.cgi?id=91522

Patch by Chao-ying Fu <fu@mips.com> on 2012-07-31
Reviewed by Oliver Hunt.

Add isCompactPtrAlignedAddressOffset.
Add a new version of add32 that accepts AbsoluteAddress as inputs.

* assembler/MacroAssemblerMIPS.h:
(JSC::MacroAssemblerMIPS::isCompactPtrAlignedAddressOffset): New.
(MacroAssemblerMIPS):
(JSC::MacroAssemblerMIPS::add32): Support AbsoluteAddress as inputs.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Crash in FrameLoader::checkLoadComplete with non-browser client app
https://bugs.webkit.org/show_bug.cgi?id=92774

Reviewed by Alexey Proskuryakov..

Speculative fix. It is possible that CSSFontSelector could get deleted during the timer callback
and memory reused, making m_document point to some garbage when it is tested at the end.

* css/CSSFontSelector.cpp:
(WebCore::CSSFontSelector::beginLoadTimerFired):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DFG OSR exit profiling has unusual oversights
https://bugs.webkit.org/show_bug.cgi?id=92728

Reviewed by Geoffrey Garen.

* dfg/DFGOSRExit.cpp:
(JSC::DFG::OSRExit::considerAddingAsFrequentExitSiteSlow):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::speculationWatchpoint):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124230 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Caret position is wrong when a editable container has word-wrap:normal set
https://bugs.webkit.org/show_bug.cgi?id=89649

Patch by Pravin D <pravind.2k4@gmail.com> on 2012-07-31
Reviewed by Levi Weintraub.

Source/WebCore:

Correcting the incorrect addumption that the min and max position for the caret rect is constrained to
the logical containing block width. This assumption is incorrect when the text has word-wrap:normal and
flows beyound the visible rect of the container.

Test: editing/input/editable-container-with-word-wrap-normal.html

* rendering/RenderText.cpp:
(WebCore::RenderText::localCaretRect):

LayoutTests:

* editing/input/editable-container-with-word-wrap-normal-expected.txt: Added.
* editing/input/editable-container-with-word-wrap-normal.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Typo: doubleTa*b*ZoomAnimationDurationInSeconds in WebViewImpl.cpp
https://bugs.webkit.org/show_bug.cgi?id=92135

Reviewed by Kentaro Hara.

This patch fixes a typo.

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::animateZoomAroundPoint):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shaders] CSS parser rejects parameter names that are also CSS keywords
https://bugs.webkit.org/show_bug.cgi?id=92537

Patch by Max Vujovic <mvujovic@adobe.com> on 2012-07-31
Reviewed by Dirk Schulze.

Source/WebCore:

Remove the CSS keyword check for CSS Shaders parameter names. Parameters are allowed to be
any valid CSS identifier, including CSS keywords. See the spec:
https://dvcs.w3.org/hg/FXTF/raw-file/tip/custom/index.html#feCustom

The CSS parser was rejecting input like the following because it uses a CSS keyword
"background" as a parameter name:
-webkit-filter: custom(none url(fragment.shader), background 0 1 0 1);

Test: css3/filters/custom/custom-filter-css-keyword-as-parameter-name.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parseCustomFilter): Do not return early when the parameter name is a
CSS keyword (i.e. when the CSSParserValue has a non-zero id).

LayoutTests:

Add a pixel test that uses the CSS keyword "background" as a CSS Shaders parameter name.
Add a parsing test case that uses the CSS keyword "background".

* css3/filters/custom/custom-filter-css-keyword-as-parameter-name-expected.png: Added.
* css3/filters/custom/custom-filter-css-keyword-as-parameter-name-expected.txt: Added.
* css3/filters/custom/custom-filter-css-keyword-as-parameter-name.html: Added.
* css3/filters/custom/custom-filter-property-parsing-expected.txt:
* css3/filters/resources/css-keyword-as-parameter-name.fs: Added.
* css3/filters/script-tests/custom-filter-property-parsing.js:
* platform/chromium/TestExpectations:
* platform/chromium/css3/filters/custom/custom-filter-property-parsing-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(124116): Number of skipped tests isn't printed anymore
https://bugs.webkit.org/show_bug.cgi?id=92736

Reviewed by Tony Chang.

Add the skipped number back in; it was useful ... also clean up
the formatting a little bit.

* Scripts/webkitpy/layout_tests/views/printing.py:
(Printer.print_found):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
nrwt: --verbose logging does not work right on windows
https://bugs.webkit.org/show_bug.cgi?id=92673

Reviewed by Ojan Vafai.

Add a test for r124090.

* Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
(MainTest.test_verbose):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
nrwt: clean up self._test_files_list vs. self._test_files, other nits
https://bugs.webkit.org/show_bug.cgi?id=92702

Reviewed by Ojan Vafai.

Get rid of self._test_files, rename self._test_files_list to
self._test_names (removing the confusion between the two fields).

Also inline the one call to _parse_expectations, remove the one
use of more_tests_to_skip, and fix a couple of minor nits.

* Scripts/webkitpy/layout_tests/controllers/finder.py:
(LayoutTestFinder.split_into_chunks):
* Scripts/webkitpy/layout_tests/controllers/manager.py:
(Manager.__init__):
(Manager._collect_tests):
(Manager._http_tests):
(Manager._websocket_tests):
(Manager._is_perf_test):
(Manager.prepare_lists_and_print_output):
(Manager.needs_servers):
(Manager.run):
(Manager._mark_interrupted_tests_as_skipped):
(Manager._update_summary_with_result):
(Manager._upload_json_files):
* Scripts/webkitpy/layout_tests/controllers/manager_unittest.py:
(ManagerTest.test_interrupt_if_at_failure_limits):
(ManagerTest.test_needs_servers.get_manager_with_tests):
(ManagerTest.test_servers_started):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
AudioPannerNode should raise exception when distanceModel is set incorrectly
https://bugs.webkit.org/show_bug.cgi?id=90952

Patch by Li Yin <li.yin@intel.com> on 2012-07-31
Reviewed by Chris Rogers.

Source/WebCore:

Spec: http://www.w3.org/TR/webaudio/#AudioPannerNode-section
The distance model can be only set to LINEAR_DISTANCE, INVERSE_DISTANCE or EXPONENTIAL_DISTANCE.
If the incorrect value is set, it will raise the exception.
Use the unsigned short to replace unsigned long in AudioPannerNode.idl.

Test: webaudio/audiopannernode-basic.html

* Modules/webaudio/AudioPannerNode.cpp:
(WebCore::AudioPannerNode::setDistanceModel): raise exception
(WebCore):
* Modules/webaudio/AudioPannerNode.h:
(AudioPannerNode):
* Modules/webaudio/AudioPannerNode.idl: using unsigned short to replace unsigned long

LayoutTests:

Spec: http://www.w3.org/TR/webaudio/#AudioPannerNode-section
Add tests for distanceModel,numberOfInputs and numberOfInputs of AudioPannerNode.

* webaudio/audiopannernode-basic-expected.txt: Added.
* webaudio/audiopannernode-basic.html: Added.
* webaudio/panner-set-model-expected.txt: Removed.
* webaudio/panner-set-model.html: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix potential build error on LocalFileSystem::deleteFileSystem.
https://bugs.webkit.org/show_bug.cgi?id=92695

Non-Chrome build of WebKit with FILE_SYSTEM flag will be broken at
LocalFileSystem::deleteFileSystem.
Chrome does not use this source and most of other ports don't turn on
FILE_SYSTEM flag for now. So, we've not seen the breakage explicitly yet.

Patch by Taiju Tsuiki <tzik@chromium.org> on 2012-07-31
Reviewed by Adam Barth.

Non-Chrome WebKit build with FILE_SYSTEM should be finished successfully.

* Modules/filesystem/LocalFileSystem.cpp:
(WebCore::LocalFileSystem::deleteFileSystem):

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