Minor optimization in ScrollingTreeScrollingNodeMac
https://bugs.webkit.org/show_bug.cgi?id=129848

Reviewed by Dean Jackson.

No need to call scrollOffsetForFixedPosition() again if we don't have header
and footer layers.

* page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
(WebCore::ScrollingTreeScrollingNodeMac::setScrollLayerPosition):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove empty class extension in WKContentViewInteraction
https://bugs.webkit.org/show_bug.cgi?id=129849

Reviewed by Enrica Casucci.

This empty class extension is cruft left over from refactoring.
It can be removed.

* UIProcess/ios/WKContentViewInteraction.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Send the fixed position rect to the WebProcess along with the other rects
https://bugs.webkit.org/show_bug.cgi?id=129856

Reviewed by Benjamin Poulain.

Remove the functions that pass the custom fixed position rect through
the DrawingArea, and replace them by adding this rect to the
VisibleContentRectUpdateInfo, along with the "is stable" flag. We
then set the custom fixed position rect in the web process for
stable updates.

* Shared/VisibleContentRectUpdateInfo.cpp:
(WebKit::VisibleContentRectUpdateInfo::encode):
(WebKit::VisibleContentRectUpdateInfo::decode):
* Shared/VisibleContentRectUpdateInfo.h:
(WebKit::VisibleContentRectUpdateInfo::VisibleContentRectUpdateInfo):
(WebKit::VisibleContentRectUpdateInfo::customFixedPositionRect):
(WebKit::VisibleContentRectUpdateInfo::inStableState):
(WebKit::operator==):
* UIProcess/DrawingAreaProxy.cpp:
* UIProcess/ios/WKContentView.mm:
(-[WKContentView didUpdateVisibleRect:unobscuredRect:scale:inStableState:]):
* WebProcess/WebPage/DrawingArea.h:
* WebProcess/WebPage/DrawingArea.messages.in:
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::updateVisibleContentRects):
* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove one more setCustomFixedPositionRect() that I missed.

* UIProcess/DrawingAreaProxy.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update WebKitSystemInterface.
<rdar://problem/16256214>

* libWebKitSystemInterfaceLion.a:
* libWebKitSystemInterfaceMavericks.a:
* libWebKitSystemInterfaceMountainLion.a:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
filter-build-webkit should not strip .o
https://bugs.webkit.org/show_bug.cgi?id=129614

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-03-06
Reviewed by Dean Jackson.

This makes it much easier to jump from the failing output at
the end back up to the compile errors earlier in the output.

* Scripts/filter-build-webkit:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
detectFailures in run-jsc-stress-tests can report everything was ok if too many tests fail
https://bugs.webkit.org/show_bug.cgi?id=129837

Reviewed by Michael Saboff.

ls test_fail_* can fail if there are too many files that match. We then swallow that error, which makes everything seem ok.
The fix is to use find instead of ls like we do in shell-runner.sh.

* Scripts/run-jsc-stress-tests:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Crash on launch with website restrictions enabled
https://bugs.webkit.org/show_bug.cgi?id=129854
<rdar://problem/16207016>

Reviewed by Simon Fraser.

* platform/mac/ContentFilterMac.mm:
(WebCore::ContentFilter::ContentFilter): Initialize m_neFilterSourceQueue so that we don't
crash in the dtor due to garbage value in the field.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unused method from BatteryController
https://bugs.webkit.org/show_bug.cgi?id=129850

Reviewed by Gyuyoung Kim.

isActive() method is never called anywhere.

* Modules/battery/BatteryController.cpp:
* Modules/battery/BatteryController.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CodeGeneratorJS.pm doesn't need to add spaces between consecutive closing template brackets
https://bugs.webkit.org/show_bug.cgi?id=129836

Reviewed by Andreas Kling.

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateParametersCheck):
(GetNativeVectorInnerType):
(GetSVGPropertyTypes):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Test that the screen orientation does not change when focusing a <textarea>
https://bugs.webkit.org/show_bug.cgi?id=129847

Reviewed by Enrica Casucci.

* fast/css/orientation-changes-on-textarea-focus-expected.html: Added.
* fast/css/orientation-changes-on-textarea-focus.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSGlobalContextRelease incorrectly handles saving/restoring IdentifierTable
https://bugs.webkit.org/show_bug.cgi?id=129858

Reviewed by Mark Lam.

It was correct (but really ugly) prior to the combining of APIEntryShim and JSLock,
but now it ends up overwriting the IdentifierTable that JSLock just restored.

* API/JSContextRef.cpp:
(JSGlobalContextRelease):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[OS X] Web Inspector: Allow Apps using JavaScriptCore to access "com.apple.webinspector" mach port
https://bugs.webkit.org/show_bug.cgi?id=129852

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-03-06
Reviewed by Geoffrey Garen.

* framework.sb: Added.
Sandbox extension to allow access to "com.apple.webinspector".

* JavaScriptCore.xcodeproj/project.pbxproj:
Add a Copy Resources build phase and include framework.sb.

* Configurations/JavaScriptCore.xcconfig:
Do not copy framework.sb on iOS.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Move EvasGL classes from WebKit to WebCore namespace.
https://bugs.webkit.org/show_bug.cgi?id=129797

Patch by Hyowon Kim <hw1008.kim@samsung.com> on 2014-03-06
Reviewed by Gyuyoung Kim.

Source/WebCore:

Though EvasGLContext and EvasGLSurface files were moved from WebKit2/UIProcess/API/efl/
to WebCore/platform/graphics/efl/, they are still in WebKit namespace.
Patch for namespace changes.

* platform/graphics/efl/EvasGLContext.cpp:
* platform/graphics/efl/EvasGLContext.h:
* platform/graphics/efl/EvasGLSurface.cpp:
* platform/graphics/efl/EvasGLSurface.h:

Source/WebKit2:

* UIProcess/API/efl/EwkView.h: namespace changes for EvasGLContext/Surface.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WebRTC] Updating RTCIceServer to match spec
https://bugs.webkit.org/show_bug.cgi?id=129844

Reviewed by Eric Carlson.

Move RTCIceServer from RTCConfiguration to its own file.

* Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::validateIceServerURL):
(WebCore::processIceServer):
* platform/mediastream/RTCConfiguration.h:
(WebCore::RTCConfiguration::iceServers):
* platform/mediastream/RTCIceServer.h: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WebRTC] Updating RTCPeerConnection.idl
https://bugs.webkit.org/show_bug.cgi?id=129804

Reviewed by Eric Carlson.

Some methods signatures were wrong, marking some arguments as optional when they are mandatory.

Source/WebCore:

Existing tests were updated.

* Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::getStats):
* Modules/mediastream/RTCPeerConnection.h:
* Modules/mediastream/RTCPeerConnection.idl:
* Modules/mediastream/RTCStatsRequestImpl.cpp:
(WebCore::RTCStatsRequestImpl::create):
(WebCore::RTCStatsRequestImpl::RTCStatsRequestImpl):
(WebCore::RTCStatsRequestImpl::requestFailed):
* Modules/mediastream/RTCStatsRequestImpl.h:
* platform/mediastream/RTCStatsRequest.h:

LayoutTests:

* fast/mediastream/RTCPeerConnection-stats.html:
* fast/mediastream/RTCPeerConnection-statsSelector.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
If the FTL is build-time enabled then it should be run-time enabled.

Rubber stamped by Geoffrey Garen.

Source/JavaScriptCore: 

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

Source/WebKit2: 

* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
(WebKit::WebProcessCreationParameters::encode):
(WebKit::WebProcessCreationParameters::decode):
* Shared/WebProcessCreationParameters.h:
* UIProcess/mac/WebContextMac.mm:
(WebKit::registerUserDefaultsIfNeeded):
(WebKit::WebContext::platformInitializeWebProcess):
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeWebProcess):

Tools: 

* Scripts/run-jsc-stress-tests:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] Allow com.apple.GSSCred in WebKit sandbox profiles
https://bugs.webkit.org/show_bug.cgi?id=129777
<rdar://problem/16050832>

Reviewed by Anders Carlsson.

* NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
* Resources/PlugInSandboxProfiles/com.apple.ist.ds.appleconnect.webplugin.sb:
* WebProcess/com.apple.WebProcess.sb.in:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Don’t copy WebInputs.json into the framework.

* WebCore.xcodeproj/project.pbxproj: Removed WebInputs.json from the Copy Bundle Resources
build phase of the WebCore target.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCoreResourceHandleAsOperationQueueDelegate over-retains NSURLRequest.
<https://webkit.org/b/129862>

Don't retain the pointer before assigning it to a RetainPtr, since that
will cause the object to leak.

Reviewed by Alexey Proskuryakov.

* platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm:
(-[WebCoreResourceHandleAsOperationQueueDelegate continueWillSendRequest:]):


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