Move Mac process suppression from WebCore to WebKit2
https://bugs.webkit.org/show_bug.cgi?id=139705

Reviewed by Geoff Garen.

Currently PageThrottler constructs the PageActivityState, holds a copy of the ViewState,
and an optional UserActivity.

Instead, still construct the PageActivityState but just pass this out via the Page to WebPage.
Logic From PageThrottler::updateUserActivity merged into WebPage::updateUserActivity.

Source/WebCore:

* WebCore.exp.in:
    - removed createUserActivity.
* page/ChromeClient.h:
(WebCore::ChromeClient::setPageActivityState):
    - added to propagate PageActivityState to WebPage.
* page/Page.cpp:
(WebCore::Page::Page):
    - PageThrottler constructor now takes a Page&.
(WebCore::Page::setViewState):
    - no longer necessary to pass this to PageThrottler.
(WebCore::Page::setPageActivityState):
    - added to propagate PageActivityState to WebPage.
(WebCore::Page::enablePageThrottler): Deleted.
    - PageThrottler no longer has a UserActivity.
* page/Page.h:
(WebCore::Page::pageThrottler):
    - added setPageActivityState, removed enablePageThrottler.
* page/PageThrottler.cpp:
(WebCore::PageThrottler::PageThrottler):
    - removed m_viewState, added m_page.
(WebCore::PageThrottler::setActivityFlag):
    - propagate PageActivityState via Page to WebPage.
(WebCore::PageThrottler::createUserActivity): Deleted.
(WebCore::PageThrottler::updateUserActivity): Deleted.
(WebCore::PageThrottler::setViewState): Deleted.
    - removed; PageThrottler no longer has a PageThrottler or UserActivity.
* page/PageThrottler.h:
    - removed createUserActivity, setViewState, m_viewState, m_activity; added m_page.

Source/WebKit2:

* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::setPageActivityState):
    - added to propagate PageActivityState to WebPage.
* WebProcess/WebCoreSupport/WebChromeClient.h:
    - added setPageActivityState to propagate PageActivityState to WebPage.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
    - calls to updateUserActivity.
(WebKit::WebPage::setPageActivityState):
    - calls to updateUserActivity.
(WebKit::WebPage::updateUserActivity):
    - incorporate logic from PageThrottler::updateUserActivity.
(WebKit::WebPage::setViewState):
    - calls to updateUserActivity.
(WebKit::WebPage::updatePreferences):
    - calls to updateUserActivity.
* WebProcess/WebPage/WebPage.h:
    - added setPageActivityState, m_activityState.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Update expected results for LayoutTest/{inspector-obsolete, inspector-protocol,
media, mhtml, perf, platform, plugins, scrollingcoordinator, userscripts, webarchive}

* platform/ios-simulator-wk2/TestExpectations:
* platform/ios-simulator/TestExpectations:
[...]

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Ruby overhang uses ints instead of floats
https://bugs.webkit.org/show_bug.cgi?id=139624

Reviewed by Dave Hyatt.

Source/WebCore:

Simply change the type.

Updated existing tests.

* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlockFlow::setMarginsForRubyRun):
* rendering/RenderRubyRun.cpp:
(WebCore::RenderRubyRun::getOverhang):
* rendering/RenderRubyRun.h:
* rendering/line/LineWidth.cpp:
(WebCore::LineWidth::applyOverhang):

LayoutTests:

Updating tests.

* fast/ruby/overhang-horizontal-expected.png:
* fast/ruby/overhang-horizontal-expected.txt:
* fast/ruby/overhang-vertical-expected.png:
* fast/ruby/overhang-vertical-expected.txt:
* platform/mac/fast/ruby/ruby-beforeafter-expected.png:
* platform/mac/fast/ruby/ruby-beforeafter-expected.txt:
* platform/mac/fast/ruby/ruby-length-expected.png:
* platform/mac/fast/ruby/ruby-length-expected.txt:
* platform/mac/fast/ruby/ruby-run-break-expected.png:
* platform/mac/fast/ruby/ruby-run-break-expected.txt:
* platform/mac/fast/ruby/ruby-runs-expected.png:
* platform/mac/fast/ruby/ruby-runs-expected.txt:
* platform/mac/fast/ruby/ruby-runs-spans-expected.png:
* platform/mac/fast/ruby/ruby-runs-spans-expected.txt:
* platform/mac/fast/ruby/ruby-trailing-expected.png:
* platform/mac/fast/ruby/ruby-trailing-expected.txt:
* platform/mac/fast/ruby/rubyDOM-insert-rt-expected.png:
* platform/mac/fast/ruby/rubyDOM-insert-rt-expected.txt:
* platform/mac/fast/ruby/rubyDOM-insert-text1-expected.png:
* platform/mac/fast/ruby/rubyDOM-insert-text1-expected.txt:
* platform/mac/fast/ruby/rubyDOM-insert-text2-expected.png:
* platform/mac/fast/ruby/rubyDOM-insert-text2-expected.txt:
* platform/mac/fast/ruby/rubyDOM-insert-text3-expected.png:
* platform/mac/fast/ruby/rubyDOM-insert-text3-expected.txt:
* platform/mac/fast/ruby/rubyDOM-remove-rt1-expected.png:
* platform/mac/fast/ruby/rubyDOM-remove-rt1-expected.txt:
* platform/mac/fast/ruby/rubyDOM-remove-rt2-expected.png:
* platform/mac/fast/ruby/rubyDOM-remove-rt2-expected.txt:
* platform/mac/fast/ruby/rubyDOM-remove-text1-expected.png:
* platform/mac/fast/ruby/rubyDOM-remove-text1-expected.txt:
* platform/mac/fast/writing-mode/Kusa-Makura-background-canvas-expected.png:
* platform/mac/fast/writing-mode/Kusa-Makura-background-canvas-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix iOS builders for 8.0
https://bugs.webkit.org/show_bug.cgi?id=139495

Reviewed by Jer Noble

Source/WebCore:

* WebCore.exp.in:
* platform/ios/WebVideoFullscreenControllerAVKit.mm:
(-[WebVideoFullscreenController enterFullscreen:mode:]):
(-[WebVideoFullscreenController requestHideAndExitFullscreen]):
(-[WebVideoFullscreenController enterFullscreen:]): Deleted.
* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:

Source/WebKit2:

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _mayAutomaticallyShowVideoOptimized]):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
(WebKit::WebPageProxy::reattachToWebProcess):
* UIProcess/ios/WebVideoFullscreenManagerProxy.mm:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
More test gardening.

Fix syntax of one entry, extend two flakiness entries to cover Yosemite, where
these tests recently failed.

* platform/mac-wk2/TestExpectations:
* platform/mac/TestExpectations:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177400 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r177380.
https://bugs.webkit.org/show_bug.cgi?id=139707

"Breaks js/regres/elidable-new-object-* tests" (Requested by
msaboff_ on #webkit).

Reverted changeset:

"Fixes operationPutByIdOptimizes such that they check that the
put didn't"
https://bugs.webkit.org/show_bug.cgi?id=139500
http://trac.webkit.org/changeset/177380

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177401 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add a progress indicator to the preview popover
https://bugs.webkit.org/show_bug.cgi?id=139699

Reviewed by Tim Horton.

* UIProcess/API/Cocoa/WKViewPrivate.h:
* UIProcess/API/mac/WKView.mm:
(-[WKView _setPreviewLoading:]):
Wrap -[WKImmediateActionController setPreviewLoading:].

* UIProcess/mac/WKImmediateActionController.h:
* UIProcess/mac/WKImmediateActionController.mm:
(-[WKImmediateActionController _createPreviewPopoverIfNeededForURL:]):
Flag the preview view controller as loading before beginning the load.
(-[WKImmediateActionController setPreviewLoading:]):
Wrap -[WKPagePreviewViewController setLoading:].

* UIProcess/mac/WKPagePreviewViewController.h:
* UIProcess/mac/WKPagePreviewViewController.mm:
(-[WKPagePreviewViewController setLoading:]):
Toggle the progress indicator animation state.
(-[WKPagePreviewViewController isLoading]):
Accessor.
(-[WKPagePreviewViewController loadView]):
Create and center an indeterminate progress indicator that won't scale with the preview content.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://bugs.webkit.org/show_bug.cgi?id=139708
http/tests/media/video-buffered-range-contains-currentTime.html frequently times out

* platform/mac/TestExpectations: Added an expectation.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177403 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Cherokee language is drawn as boxes
https://bugs.webkit.org/show_bug.cgi?id=139706

Reviewed by Simon Fraser.

Source/WebCore:

Test: platform/ios-simulator/fast/text/cherokee.html

* platform/graphics/ios/FontCacheIOS.mm:
(WebCore::languageSpecificFallbackFont):

LayoutTests:

* platform/ios-simulator/fast/text/cherokee-expected.html: Added.
* platform/ios-simulator/fast/text/cherokee.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Immediate action popovers can get stuck open
https://bugs.webkit.org/show_bug.cgi?id=139709
<rdar://problem/19270279>

Reviewed by Beth Dakin.

* UIProcess/mac/WKImmediateActionController.mm:
(-[WKImmediateActionController _clearImmediateActionState]):
Don't clear the animation controller; it breaks things and was unnecessary.

* WebView/WebImmediateActionController.mm:
(-[WebImmediateActionController _clearImmediateActionState]):
Don't clear the animation controller; it breaks things and was unnecessary.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaseline Mavericks test result after r177398

Unreviewed.

* platform/mac-mavericks/fast/writing-mode/Kusa-Makura-background-canvas-expected.png:
* platform/mac-mavericks/fast/writing-mode/Kusa-Makura-background-canvas-expected.txt:

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