https://bugs.webkit.org/show_bug.cgi?id=127072
Don't autorelease wrapper object (WebProcessPlugInScriptWorld) for InjectedBundleScriptWorld::normalWorld().

Patch by Yongjun Zhang <yongjun_zhang@apple.com> on 2014-01-15
Reviewed by Geoffrey Garen.

In [WKWebProcessPlugInScriptWorld normalWorld], InjectedBundleScriptWorld::normalWorld() returns a static
instance,  autoreleasing its wrapper object could cause a dangling pointer and crash later.

* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm:
(+[WKWebProcessPlugInScriptWorld normalWorld]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Change Page, FocusController to use ViewState
https://bugs.webkit.org/show_bug.cgi?id=126533

Unreviewed rollout, this caused a regression.

Source/WebCore: 

* WebCore.exp.in:
* page/FocusController.cpp:
(WebCore::FocusController::FocusController):
(WebCore::FocusController::setFocused):
(WebCore::FocusController::setActive):
(WebCore::FocusController::setContentIsVisible):
* page/FocusController.h:
(WebCore::FocusController::isActive):
(WebCore::FocusController::isFocused):
* page/Page.cpp:
(WebCore::Page::Page):
(WebCore::Page::setIsInWindow):
(WebCore::Page::setIsVisuallyIdle):
(WebCore::Page::setIsVisible):
(WebCore::Page::visibilityState):
(WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
* page/Page.h:
(WebCore::Page::isVisible):
(WebCore::Page::isInWindow):

Source/WebKit2: 

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
(WebKit::WebPage::setActive):
(WebKit::WebPage::setViewIsVisible):
(WebKit::WebPage::setFocused):
(WebKit::WebPage::setIsInWindow):
(WebKit::WebPage::setViewStateInternal):
(WebKit::WebPage::setIsVisuallyIdle):
* WebProcess/WebPage/WebPage.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
MediaSessionManager shouldn't use std::map
https://bugs.webkit.org/show_bug.cgi?id=127003

Reviewed by Sam Weinig.

No new tests, no functional change.

Use an array instead of std::map.
* platform/audio/MediaSessionManager.cpp:
(WebCore::MediaSessionManager::MediaSessionManager):
(WebCore::MediaSessionManager::addRestriction):
(WebCore::MediaSessionManager::removeRestriction):
(WebCore::MediaSessionManager::restrictions):
(WebCore::MediaSessionManager::sessionWillBeginPlayback):
* platform/audio/MediaSessionManager.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
TextBreakIterator's should support Latin-1 for all iterator types (Part 2)
https://bugs.webkit.org/show_bug.cgi?id=126856

Reviewed by Ryosuke Niwa.

Move the contents of TextBreakIteratorICU.cpp to TextBreakIterator.cpp and remove TextBreakIteratorICU.cpp.

* CMakeLists.txt:
* GNUmakefile.list.am:
* PlatformGTK.cmake:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* platform/text/TextBreakIterator.cpp:
* platform/text/TextBreakIteratorICU.cpp: Removed.


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

* platform/efl-wk1/TestExpectations:
Unskipped some tests in svg/dynamic-updates which are passing now.

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