REGRESSION(r165385): [WebTextIterator currentRange] crashes
https://bugs.webkit.org/show_bug.cgi?id=130271

Reviewed by Anders Carlsson.

After r165385, TextIterator::range no longer checked the nullity of m_positionNode. As a result,
[WebTextIterator currentRange] which simply calls TextIterator::range crashes when an application
that embeds WebKit doesn't check [WebTextIterator atEnd] first.

Preserve the old public API behavior by checking atEnd in [WebTextIterator currentRange].

* WebView/WebTextIterator.mm:
(-[WebTextIterator currentRange]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Texmap] Remove duplicated code in TextureMapperLayer
https://bugs.webkit.org/show_bug.cgi?id=130173

Reviewed by Martin Robinson.

This patch is a simple refactoring to remove duplicated code in
TextureMapperLayer.

* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::~TextureMapperLayer):
(WebCore::TextureMapperLayer::removeFromParent):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS WK2] background-attachment: fixed renders oddly, moves around
https://bugs.webkit.org/show_bug.cgi?id=130277
<rdar://problem/16332883>

Source/WebCore:

Reviewed by Tim Horton.

If we have a counter-scrolling layer (for a fixed background), move
it around when changing the viewport.

* page/scrolling/ios/ScrollingTreeScrollingNodeIOS.mm:
(WebCore::ScrollingTreeScrollingNodeIOS::updateForViewport):

Source/WebKit2:

Reviewed by Tim Horton.

Actually send scrolling and counter-scrolling layers to the UI process!

* Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
(ArgumentCoder<ScrollingStateScrollingNode>::encode):
(ArgumentCoder<ScrollingStateScrollingNode>::decode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Incorrect Date returned between March 1, 2034 and February 28, 2100.
https://bugs.webkit.org/show_bug.cgi?id=130123

Patch by Byungseon Shin <sun.shin@lge.com> on 2014-03-14
Reviewed by Mark Lam.

Fix logic by using predefined Date APIs.

Source/WTF:

* wtf/DateMath.cpp:
(WTF::ymdhmsToSeconds):

LayoutTests:

* js/date-constructor-expected.txt:
* js/script-tests/date-constructor.js:
(testDate):

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