[GTK] Build break in WebKitSettings
https://bugs.webkit.org/show_bug.cgi?id=128446

Patch by Piotr Grad <p.grad@samsung.com> on 2014-02-08
Reviewed by Ryosuke Niwa.

Argument for WebPreferences::create was missing

* UIProcess/API/gtk/WebKitSettings.cpp:
(_WebKitSettingsPrivate::_WebKitSettingsPrivate):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] build-webkit script always generate-gtk-doc even if '--disable-gtk-doc' param is passed
https://bugs.webkit.org/show_bug.cgi?id=128376

Patch by Diego Pino Garcia <dpino@igalia.com> on 2014-02-08
Reviewed by Carlos Garcia Campos.

* Scripts/webkitdirs.pm:
(buildAutotoolsProject):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163697 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Make process model names properly meaningful
https://bugs.webkit.org/show_bug.cgi?id=128389

Patch by Adrian Perez de Castro <aperez@igalia.com> on 2014-02-08
Reviewed by Carlos Garcia Campos.

The name WEBKIT_PROCESS_MODEL_ONE_SECONDARY_PROCESS_PER_WEB_VIEW
is misleading because there are situations in which web views may
share the same web process even when multi-process mode is enabled;
for example when opening a related view and both interact using JS.

Source/WebKit2:

* UIProcess/API/gtk/WebKitWebContext.cpp:
(webkit_web_context_set_process_model):
(webkit_web_context_get_process_model):
Update names of WebKitProcessModel enum values.
* UIProcess/API/gtk/WebKitWebContext.h:
Ditto.

Tools:

* MiniBrowser/gtk/main.c:
(main):
Update usage of WebKitProcessModel enum values.
* TestWebKitAPI/Tests/WebKit2Gtk/TestMultiprocess.cpp:
(beforeAll):
Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Minibrowser: Matched words of a searched text are not highlighted after reopening search bar
https://bugs.webkit.org/show_bug.cgi?id=128380

Patch by Diego Pino Garcia <dpino@igalia.com> on 2014-02-08
Reviewed by Carlos Garcia Campos.

When open the search bar, perform last search if there is any.

* MiniBrowser/gtk/BrowserSearchBar.c:
(browser_search_bar_open):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSLock should not "restore" VM stack values if it did not re-grab locks.
<https://webkit.org/b/128447>

Reviewed by Geoffrey Garen.

In the existing code, if DropAllLocks is instantiate with DontAlwaysDropLocks
in a thread that does not own the JSLock, then a bug will manifest where:

1. The DropAllLocks constructor will save the VM's stackPointerAtEntry,
   lastStackTop, and reservedZoneSize even though it will not drop the JSLock.
2. The DropAllLocks destructor will restore those 3 values to the VM even
   though the JSLock will not grab its internal lock.

The former only causes busy work but does not impact correctness. The latter
however, will corrupt those 3 VM values which belong to the thread that
actually owns the JSLock.

The fix is to only save the values when the JSLock will actually drop its
internal lock, and only restore the values if it did re-grab the internal lock.

* runtime/JSLock.cpp:
(JSC::JSLock::dropAllLocks):
(JSC::JSLock::dropAllLocksUnconditionally):
(JSC::JSLock::grabAllLocks):
(JSC::JSLock::DropAllLocks::DropAllLocks):
- Moved the saving of VM stack values to dropAllLocks() and
  dropAllLocksUnconditionally().
(JSC::JSLock::DropAllLocks::~DropAllLocks):
- Moved the restoring of VM stack values to grabAllLocks().



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove unused ENABLE(REPAINT_THROTTLING) flag.
<https://webkit.org/b/128329>

Reviewed by Antti Koivisto.

.:

* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:

Source/WTF:

* wtf/FeatureDefines.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Font size-related preference values should be CGFloats backed by doubles
https://bugs.webkit.org/show_bug.cgi?id=128445

Reviewed by Filip Pizlo.

* Shared/WebPreferencesStore.h: Changed minimumFontSize, minimumLogicalFontSize,
defaultFontSize, and defaultFixedFontSize into double-value preferences.
* UIProcess/API/Cocoa/WKPreferences.h: Changed minimumFontSize into CGFloat.
* UIProcess/API/Cocoa/WKPreferences.mm:
(-[WKPreferences minimumFontSize]): Changed return type.
(-[WKPreferences setMinimumFontSize:]): Changed parameter type.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences): Changed to use double getters.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use renderer iterators in two more places.
<https://webkit.org/b/128371>

Reviewed by Antti Koivisto.

* dom/Position.cpp:
(WebCore::Position::primaryDirection):

    Use lineageOfType instead of walking the parent chain.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::insertOnlyThisLayer):

    Use childrenOfType instead of walking the children.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Devirtualize RenderBlockFlowRareData.
<https://webkit.org/b/128427>

This class had a virtual destructor for no reason. Removing it
shrinks RenderBlockFlowRareData by 8 bytes.

Reviewed by Anders Carlsson.

* rendering/RenderBlockFlow.h:
(WebCore::RenderBlockFlow::RenderBlockFlowRareData::~RenderBlockFlowRareData):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CTTE: SVGTRefTargetEventListener is always owned by SVGTRefElement.
<https://webkit.org/b/128432>

Tighten up the relationship between SVGTRefElement and its internal
event listener helper by storing the listener in a Ref, and making
the listeners backpointer to the element be a reference.

Reviewed by Anders Carlsson.

* svg/SVGTRefElement.cpp:
(WebCore::SVGTRefTargetEventListener::create):
(WebCore::SVGTRefTargetEventListener::SVGTRefTargetEventListener):
(WebCore::SVGTRefTargetEventListener::operator==):
(WebCore::SVGTRefTargetEventListener::handleEvent):
(WebCore::SVGTRefElement::SVGTRefElement):
* svg/SVGTRefElement.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove two unused function declarations.

Scrub "highQualityRepaintTimerFired" declarations from RenderImage
and RenderBoxModelObject since they're not actually defined.

* rendering/RenderBoxModelObject.h:
* rendering/RenderImage.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<https://webkit.org/b/128448> Fix use of availability macros on recently-added APIs

Reviewed by Dan Bernstein.

* API/JSContext.h: Remove some #ifs.
* API/JSManagedValue.h: Ditto.
* API/WebKitAvailability.h: #define the macros that availability macros mentioning
newer OS X versions would expand to when building on older OS versions.
* JavaScriptCore.xcodeproj/project.pbxproj: Call the new postprocess-headers.sh.
* postprocess-headers.sh: Extracted from the Xcode project. Updated to remove content
from headers based on the __MAC_OS_X_VERSION_MIN_REQUIRED macro, and to
process WebKitAvailability.h.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Build break in WebKitWebViewBase.cpp::webkitWebViewBaseCreateWebPage
https://bugs.webkit.org/show_bug.cgi?id=128449

Patch by Piotr Grad <p.grad@samsung.com> on 2014-02-08
Reviewed by Carlos Garcia Campos.

Parameter passed to context->createWebPage was inproper.

* UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseCreateWebPage):

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

* API/WebKitAvailability.h: Skip the workarounds specific to OS X when we're building for iOS.

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