[GTK] webkit-patch setup-git-clone fails even after running Tools/gtk/install-dependencies
https://bugs.webkit.org/show_bug.cgi?id=129893

Reviewed by Martin Robinson.

Added "git-svn" as dependency for deb based distros and,
additionally, "subversion" for rpm based distros.

* gtk/install-dependencies:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Add an updateID to visibleContentRect updates which is passed back in layer transactions, so we know whether transactions are stale
https://bugs.webkit.org/show_bug.cgi?id=129897

Reviewed by Benjamin Poulain.

In WebKit2 on iOS we need to know when layer updates from the web process
are stale with respect to visible rect updates from the UI process. Do so
by adding an updateID to VisibleContentRectUpdateInfo, and storing it
on each side, returning it in RemoteLayerTreeTransaction.

Did some re-ordering of members and encoding order in RemoteLayerTreeTransaction
to group like data members together.

* Shared/VisibleContentRectUpdateInfo.cpp:
(WebKit::VisibleContentRectUpdateInfo::encode):
(WebKit::VisibleContentRectUpdateInfo::decode):
* Shared/VisibleContentRectUpdateInfo.h:
(WebKit::VisibleContentRectUpdateInfo::VisibleContentRectUpdateInfo):
(WebKit::VisibleContentRectUpdateInfo::updateID):
(WebKit::operator==):
* Shared/mac/RemoteLayerTreeTransaction.h:
(WebKit::RemoteLayerTreeTransaction::setLastVisibleContentRectUpdateID):
(WebKit::RemoteLayerTreeTransaction::lastVisibleContentRectUpdateID):
* Shared/mac/RemoteLayerTreeTransaction.mm:
(WebKit::RemoteLayerTreeTransaction::encode):
(WebKit::RemoteLayerTreeTransaction::decode):
* UIProcess/WebPageProxy.h:
(WebKit::WebPageProxy::nextVisibleContentRectUpdateID):
(WebKit::WebPageProxy::lastVisibleContentRectUpdateID):
* UIProcess/ios/WKContentView.mm:
(-[WKContentView didUpdateVisibleRect:unobscuredRect:scale:inStableState:]):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
(WebKit::WebPage::willCommitLayerTree):
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::updateVisibleContentRects):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Correct out-of-band track selection logic.
https://bugs.webkit.org/show_bug.cgi?id=129900

Reviewed by Jer Noble.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::synchronizeTextTrackState): Correct test to
use inequality.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move GCActivityCallback to heap
https://bugs.webkit.org/show_bug.cgi?id=129457

Reviewed by Geoffrey Garen.

All the other GC timer related stuff is there already.

* CMakeLists.txt:
* GNUmakefile.list.am:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
* JavaScriptCore.xcodeproj/project.pbxproj:
* heap/GCActivityCallback.cpp: Copied from Source/JavaScriptCore/runtime/GCActivityCallback.cpp.
* heap/GCActivityCallback.h: Copied from Source/JavaScriptCore/runtime/GCActivityCallback.h.
* runtime/GCActivityCallback.cpp: Removed.
* runtime/GCActivityCallback.h: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Link WebKit.framework against WebKit2.framework and re-export all WebKit2 symbols
https://bugs.webkit.org/show_bug.cgi?id=129901
<rdar://problem/15920020>

Reviewed by Andreas Kling.

* Configurations/WebKit.xcconfig:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165283 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(165267): Broke a webkitpy unit tests
https://bugs.webkit.org/show_bug.cgi?id=129904

Reviewed by Jon Honeycutt.

* Scripts/webkitpy/port/gtk.py: Flip the default test to assume CMake by default.
(GtkPort._is_cmake_build):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unused StdDeviation from Drop shadow effect
https://bugs.webkit.org/show_bug.cgi?id=129891

Reviewed by Dirk Schulze.

No new tests, no change on behavior.

* platform/graphics/filters/FEDropShadow.h:


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

* Configurations/WebKit2.xcconfig: Add -framework OpenGLES to linking.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] WebKit1 scroll position is incorrect
https://bugs.webkit.org/show_bug.cgi?id=129905

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-03-07
Reviewed by Simon Fraser.

* page/DOMWindow.cpp:
(WebCore::DOMWindow::scrollX):
(WebCore::DOMWindow::scrollY):
A new optimization was avoiding layout if the position is zero. This was using the scrollX/Y instead
of actualScrollX/Y which caused us to always bail out instead of returning the value to JavaScript.

* platform/ScrollView.h:
(WebCore::ScrollView::actualScrollX):
(WebCore::ScrollView::actualScrollY):
(WebCore::ScrollView::actualScrollPosition):
This was accidentally changed to the iOS compat document visible rect at some point.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tweak the WebKit2 frameworks directories
https://bugs.webkit.org/show_bug.cgi?id=129910
<rdar://problem/15920020>

Reviewed by Dan Bernstein.

Use an SDK relative directory for production builds.

* Configurations/WebKit.xcconfig:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] Notify system malloc of fake memory pressure.
<https://webkit.org/b/129908>

Source/WebCore:

After fixing the leak in r165252, I was surprised to find that it didn't
show up on memory test bots. It turns out that while the memory is now
getting freed, the system malloc implementation doesn't actually release
pages back to the OS until there is memory pressure.

Since we are just faking the memory pressure on bots, we have to let
system malloc in on the fun, so we can get representative numbers.
With this change, we should finally see the effect of not leaking the
URLRequest object tree.

Reviewed by Anders Carlsson.

* platform/mac/MemoryPressureHandlerMac.mm:
(WebCore::MemoryPressureHandler::install):

    Tell system malloc that we are under fake memory pressure.

Source/WebKit2:

Reviewed by Anders Carlsson.

* NetworkProcess/mac/NetworkProcessMac.mm:
(WebKit::NetworkProcess::platformInitializeNetworkProcess):

    Listen for the fake memory pressure notification and respond by
    just forwarding to system malloc. We don't do the full WebCore
    memory pressure handling here, since that will cause stuff that
    the network process doesn't need to get instantiated.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Clarify how we deal with "special" registers
https://bugs.webkit.org/show_bug.cgi?id=129806

Already reviewed change being relanded.

Relanding change set r165196 as it wasn't responsible for the breakage reported in
https://bugs.webkit.org/show_bug.cgi?id=129822.  That appears to be a build or

Reviewed by Michael Saboff.
configuration issue.

* assembler/ARM64Assembler.h:
(JSC::ARM64Assembler::lastRegister):
* assembler/MacroAssembler.h:
(JSC::MacroAssembler::nextRegister):
* ftl/FTLLocation.cpp:
(JSC::FTL::Location::restoreInto):
* ftl/FTLSaveRestore.cpp:
(JSC::FTL::saveAllRegisters):
(JSC::FTL::restoreAllRegisters):
* ftl/FTLSlowPathCall.cpp:
* jit/RegisterSet.cpp:
(JSC::RegisterSet::reservedHardwareRegisters):
(JSC::RegisterSet::runtimeRegisters):
(JSC::RegisterSet::specialRegisters):
(JSC::RegisterSet::calleeSaveRegisters):
* jit/RegisterSet.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix a typo
<rdar://problem/15920020>

Rubber-stamped by Dan Bernstein.

* Configurations/WebKit.xcconfig:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Install WebKit2 XPC services to the correct place during iOS Simulator builds
https://bugs.webkit.org/show_bug.cgi?id=129914

Reviewed by Dan Bernstein.

We weren't specifying INSTALL_PATH for iOS Simulator builds in
BaseXPCService.xcconfig, and r164576 changed INSTALL_PATH to
INSTALL_PATH_ACTUAL. This caused XPC services to start being installed
to the root of the iOS Simulator SDK. Fix this by setting
INSTALL_PATH_ACTUAL for iphonesimulator.

* Configurations/BaseXPCService.xcconfig:

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