WebKit shouldn't crash on uniprocessor machines
https://bugs.webkit.org/show_bug.cgi?id=130176

Reviewed by Michael Saboff.
        
Previously the math for computing the number of JIT compiler threads would come up with
zero threads on uniprocessor machines, and then the Worklist code would assert.

* runtime/Options.cpp:
(JSC::computeNumberOfWorkerThreads):
* runtime/Options.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS WebKit2] Crash on iPad when displaying a select element with options.
https://bugs.webkit.org/show_bug.cgi?id=130200
<rdar://problem/16316187>

Reviewed by Simon Fraser.

_singleSelectionIndex should be initialized to NSNotFound for multiSelect elements.

* UIProcess/ios/forms/WKFormSelectPopover.mm:
(-[WKSelectTableViewController initWithView:hasGroups:]):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove a commented out member function
https://bugs.webkit.org/show_bug.cgi?id=130204

Reviewed by Tim Horton.

* Shared/ChildProcessProxy.h:
(WebKit::ChildProcessProxy::canSendMessage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove INPUT_LIST_BUTTON from the PseudoIds
https://bugs.webkit.org/show_bug.cgi?id=130108

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-03-13
Reviewed by Andreas Kling.

* rendering/style/RenderStyleConstants.h:
It is unused.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r165542): printing/page-rule-selection.html failing
https://bugs.webkit.org/show_bug.cgi?id=130205

Reviewed by Andreas Kling.

* css/StyleResolver.cpp:
(WebCore::StyleResolver::keyframeStylesForAnimation):
(WebCore::StyleResolver::styleForPage):
        
    Use Document style as parent when resolving page style.

(WebCore::StyleResolver::applyPropertyToStyle):
* css/StyleResolver.h:
        
    Get rid of the default null parameter.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JS benchmarks crash with a bus error on 32-bit x86.
<https://webkit.org/b/130203>

Reviewed by Geoffrey Garen.

The issue is that generateGetByIdStub() can potentially use the same register
for the JSValue base register and the target tag register.  After loading the
tag value into the target tag register, the JSValue base address is lost.
The code then proceeds to load the payload value using the base register, and
this results in a crash.

The fix is to check if the base register is the same as the target tag register.
If so, we should make a copy the base register first before loading the tag
value, and use the copy to load the payload value instead.

* jit/Repatch.cpp:
(JSC::generateGetByIdStub):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update WebAccessibilityObjectWrapperIOS after r165544

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-03-13

* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper isSVGGroupElement]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Attempt to fix the build after r165542

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-03-13

* dom/NodeRenderStyle.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update the build fix for r165544

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-03-13

* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper isSVGGroupElement]):
Use the SVG version since the name being tested is a SVG name.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update the build fix for r165544

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-03-13

* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
Fix typo :(


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

* Misc/WebSharingServicePickerController.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename WKVisitedLinkProvider to _WKVisitedLinkProvider and make it private
https://bugs.webkit.org/show_bug.cgi?id=130207

Reviewed by Dan Bernstein.

* UIProcess/API/Cocoa/WKVisitedLinkProviderPrivate.h: Removed.
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView initWithFrame:configuration:]):
* UIProcess/API/Cocoa/WKWebViewConfiguration.h:
* UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
(-[WKWebViewConfiguration _visitedLinkProvider]):
(-[WKWebViewConfiguration _setVisitedLinkProvider:]):
* UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
* UIProcess/API/Cocoa/_WKVisitedLinkProvider.h: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKVisitedLinkProvider.h.
* UIProcess/API/Cocoa/_WKVisitedLinkProvider.mm: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKVisitedLinkProvider.mm.
(-[_WKVisitedLinkProvider init]):
* UIProcess/API/Cocoa/_WKVisitedLinkProviderInternal.h: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKVisitedLinkProviderInternal.h.
* WebKit2.xcodeproj/project.pbxproj:

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