[Mac] WebKit doesn't enable or disable autocorrections when system preferences are changed
https://bugs.webkit.org/show_bug.cgi?id=115463

Reviewed by Darin Adler.

Source/WebKit/mac: 

Observe the default notification center for changes to autocorrection preferences.
Note system preferences may also update WebAutomatic* defaults.

* WebView/WebView.mm:
(+[WebView initialize]):
(+[WebView _shouldAutomaticTextReplacementBeEnabled]):
(+[WebView _didChangeAutomaticTextReplacementEnabled:]):
(+[WebView _shouldAutomaticSpellingCorrectionBeEnabled]):
(+[WebView _didChangeAutomaticSpellingCorrectionEnabled:]):
(+[WebView _shouldAutomaticQuoteSubstitutionBeEnabled]):
(+[WebView _shouldAutomaticDashSubstitutionBeEnabled]):
(+[WebView _didChangeAutomaticQuoteSubstitutionEnabled:]):
(+[WebView _didChangeAutomaticDashSubstitutionEnabled:]):

Source/WebKit2: 

Observe the default notification center and propagate the changes to TextCheckerState and
to all WebProcesses when system preferences are updated.

* UIProcess/TextChecker.h:
* UIProcess/WebContext.h:
* UIProcess/mac/TextCheckerMac.mm:
(WebKit::shouldAutomaticTextReplacementBeEnabled):
(WebKit::shouldAutomaticSpellingCorrectionBeEnabled):
(WebKit::shouldAutomaticQuoteSubstitutionBeEnabled):
(WebKit::shouldAutomaticDashSubstitutionBeEnabled):
(WebKit::initializeState):
(WebKit::TextChecker::didChangeAutomaticTextReplacementEnabled):
(WebKit::TextChecker::didChangeAutomaticSpellingCorrectionEnabled):
(WebKit::TextChecker::didChangeAutomaticQuoteSubstitutionEnabled):
(WebKit::TextChecker::didChangeAutomaticDashSubstitutionEnabled):
* UIProcess/mac/WebContextMac.mm:
(WebKit::WebContext::registerNotificationObservers):
(WebKit::WebContext::unregisterNotificationObservers):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[webkitpy] Need abstract base class for commands that analyze commit logs
https://bugs.webkit.org/show_bug.cgi?id=115391

Reviewed by Benjamin Poulain.

Move commit log parsing functions into new abstract base class AbstractCommitLogCommand
in preparation for adding two new commands that will reuse this functionality along with
suggest-nominations. See https://bugs.webkit.org/show_bug.cgi?id=115387 and
https://bugs.webkit.org/show_bug.cgi?id=115388.

No new tests as this patch does not change existing functionality or behavior.

* Scripts/webkitpy/tool/commands/suggestnominations.py:
(AbstractCommitLogCommand): Add abstract base class for commands that analyze commit logs.
(AbstractCommitLogCommand.__init__):
(AbstractCommitLogCommand._init_options):
(AbstractCommitLogCommand._parse_commit_message):
(SuggestNominations): Move generic commit log parsing into new base class. Use new base class.
(SuggestNominations.__init__):
(SuggestNominations._init_options):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update Lion results after http://trac.webkit.org/projects/webkit/changeset/149474

Unreviewed.

* platform/mac-lion/fast/text/text-combine-different-fonts-expected.txt: Added.

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL gardening.

* platform/efl/svg/W3C-SVG-1.1/animate-elem-23-t-expected.txt: Added.
* platform/efl/svg/W3C-SVG-1.1/coords-units-03-b-expected.txt: Added.
* platform/efl/svg/W3C-SVG-1.1/filters-comptran-01-b-expected.txt: Added.
* platform/efl/svg/W3C-SVG-1.1/filters-example-01-b-expected.txt: Added.
* platform/efl/svg/text/text-midpoint-split-bug-expected.txt: Added.
* platform/efl/svg/zoom/page/zoom-replaced-intrinsic-ratio-001-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening after r149457 and r149388.

* platform/qt/TestExpectations:
* platform/qt/fast/block/margin-collapse/block-inside-inline/025-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed. Some more gardening after r149292.
https://bugs.webkit.org/show_bug.cgi?id=115372

* platform/qt-5.0-wk2/compositing/layer-creation/fixed-position-and-transform-expected.png:
* platform/qt-5.0-wk2/compositing/layer-creation/fixed-position-and-transform-expected.txt:
* platform/qt-5.0-wk2/compositing/layer-creation/fixed-position-under-transform-expected.png:
* platform/qt-5.0-wk2/compositing/layer-creation/fixed-position-under-transform-expected.txt:
* platform/qt-5.0-wk2/compositing/layer-creation/no-compositing-for-sticky-expected.txt: Added.
* platform/qt-5.0-wk2/compositing/layer-creation/stacking-context-overlap-nested-expected.txt: Added.
* platform/qt-5.0-wk2/compositing/rtl/rtl-fixed-overflow-scrolled-expected.png:
* platform/qt-5.0-wk2/compositing/rtl/rtl-fixed-overflow-scrolled-expected.txt:
* platform/qt-5.0-wk2/compositing/rtl/rtl-iframe-absolute-overflow-scrolled-expected.txt: Added.
* platform/qt-5.0-wk2/compositing/rtl/rtl-iframe-fixed-overflow-scrolled-expected.txt: Added.
* platform/qt-5.0-wk2/css3/filters/filtered-compositing-descendant-expected.txt: Added.
* platform/qt-5.0-wk2/editing/selection/caret-rtl-right-expected.txt:
* platform/qt-5.0-wk2/fast/forms/form-element-geometry-expected.png:
* platform/qt-5.0-wk2/fast/forms/form-element-geometry-expected.txt:
* platform/qt-5.0-wk2/fast/forms/menulist-separator-painting-expected.txt:
* platform/qt-5.0-wk2/fast/forms/selectlist-minsize-expected.txt:
* platform/qt-5.0-wk2/svg/custom/glyph-selection-bidi-mirror-expected.txt:
* platform/qt-5.0-wk2/svg/custom/use-instanceRoot-event-listeners-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Segmentation Fault with Romanian locale. Evolution not starting.
https://bugs.webkit.org/show_bug.cgi?id=115484

Reviewed by Darin Adler.

Do not translate the property names that are being passed to the g_param_spec_boolean
method - it is not required and is causing segfaults with various locales.

* webkit/webkitviewportattributes.cpp:
(webkit_viewport_attributes_class_init):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Make scroll position adjustment work with pages with fixed position elements.
https://bugs.webkit.org/show_bug.cgi?id=115178

Patch by Iris Wu <shuwu@blackberry.com> on 2013-05-02
Reviewed by Rob Buis.

PR 308796
Debug build fix.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::fixedElementSizeDelta):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        REGRESSION (r149422): -[WKBrowsingContextController loadFileURL:restrictToFilesWithin:]
        broken when second argument is nil
        https://bugs.webkit.org/show_bug.cgi?id=115505
        <rdar://problem/13787297>

        Reviewed by Darin Adler.

        * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::loadFile): Pass a URL string
        to assumeReadAccessToBaseURL, as this is what it takes.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Cannot touch scroll readonly text input.
https://bugs.webkit.org/show_bug.cgi?id=115378

Patch by Genevieve Mak <gmak@rim.com> on 2013-05-02
Reviewed by Rob Buis.

PR #332902
Reviewed Internally by Mike Fenton.
Forgot half the patch.
Node::rendererIsEditable() returns false if the input element has the readonly tag set.
Check the node type instead.

* Api/InRegionScroller.cpp:
(BlackBerry::WebKit::InRegionScrollerPrivate::canScrollRenderBox):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        <rdar://problem/13740375> Non-ASCII downloaded file names are garbled when using NetworkProcess
        https://bugs.webkit.org/show_bug.cgi?id=115520

        Reviewed by Darin Adler.

        * Shared/mac/WebCoreArgumentCodersMac.mm:
        (CoreIPC::::encodePlatformData):
        (CoreIPC::::decodePlatformData):
        Send the encoding fallback array over IPC, so that it's present when NetworkProcess does its loading.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove a stale script file.
https://bugs.webkit.org/show_bug.cgi?id=115521

Reviewed by Anders Carlsson.

This script was added in
https://bugs.webkit.org/show_bug.cgi?id=17507, but it relies on the
Bakefile system that was removed in
https://bugs.webkit.org/show_bug.cgi?id=49983 . As a result, this
script just asserts when it's run and is useless.

* Scripts/update-sources-list.py: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make BloomFilter fast allocated.
https://bugs.webkit.org/show_bug.cgi?id=115519

Reviewed by Benjamin Poulain.

* wtf/BloomFilter.h:
(BloomFilter): Make BloomFilter Fast-allocated.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Updated WebKitGTK+ Translation for Odia [or] language.
https://bugs.webkit.org/show_bug.cgi?id=115030

Patch by Manoj Kumar Giri <mgiri@redhat.com> on 2013-05-02
Reviewed by Gustavo Noronha Silva.

* or.po: updated translation.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Simplify WebCoreObjCExtras by using WTF::bind
https://bugs.webkit.org/show_bug.cgi?id=115524

Reviewed by Andreas Kling.

* platform/mac/WebCoreObjCExtras.mm:
(deallocCallback):
(WebCoreObjCScheduleDeallocateOnMainThread):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix potential bug in lookup logic
https://bugs.webkit.org/show_bug.cgi?id=115522

Reviewed by Mark Hahnenberg.

Though not a problem in practise, it is technically possible
to inject an un-proxied global object into the scope chain
via the C API.  This change makes sure that the scope walk
in BytecodeGenerator actually limits itself to scopes that
are statically bindable.

* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::resolve):
* runtime/JSObject.h:
(JSObject):
(JSC):
(JSC::JSObject::isStaticScopeObject):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149496 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL gardening.

* platform/efl-wk2/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Shadow DOM removal: Make SelectorChecker non-generic
https://bugs.webkit.org/show_bug.cgi?id=115526

Reviewed by Andreas Kling.

Without Shadow DOM distribution we don't need SiblingTraversalStrategies anymore.

* css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::ruleMatches):
* css/SelectorChecker.cpp:
(WebCore):
(WebCore::isFirstChildElement):
(WebCore::isLastChildElement):
(WebCore::isFirstOfType):
(WebCore::isLastOfType):
(WebCore::countElementsBefore):
(WebCore::countElementsOfTypeBefore):
(WebCore::countElementsAfter):
(WebCore::countElementsOfTypeAfter):
(WebCore::SelectorChecker::match):
(WebCore::SelectorChecker::checkOne):
* css/SelectorChecker.h:
(SelectorChecker):
* css/SiblingTraversalStrategies.h:
* css/StyleResolver.h:
(WebCore::checkRegionSelector):
* dom/SelectorQuery.cpp:
(WebCore::SelectorDataList::selectorMatches):
* html/shadow/ContentSelectorQuery.cpp:
(WebCore::ContentSelectorDataList::checkContentSelector):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (149389) Main resources converted to downloads are immediately cancelled.
<rdar://problem/13795795> and https://bugs.webkit.org/show_bug.cgi?id=115530

Reviewed by Alexey Proskuryakov.

* NetworkProcess/NetworkConnectionToWebProcess.cpp:
(WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload): Call didConvertHandleToDownload
  on the NetworkResourceLoader.

* NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::NetworkResourceLoader):
(WebKit::NetworkResourceLoader::didConvertHandleToDownload): Set m_handleConvertedToDownload to true.
(WebKit::NetworkResourceLoader::abort): Only cancel the handle if m_handleConvertedToDownload is false.
* NetworkProcess/NetworkResourceLoader.h:

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