REGRESSION(r120832): RenderLayer::clampScrollOffset doesn't properly clamp
https://bugs.webkit.org/show_bug.cgi?id=95776

Reviewed by Simon Fraser.

.:

* ManualTests/select-menu-list-wrongly-positioned.html: Added.

Source/WebCore:

r120832 consolidated the clamping logic into RenderLayer::clampScrollOffset. The existing code wouldn't properly ensure that
the offset were positive which got exposed to other code paths, leading to the regression.

Tested by ManualTests/select-menu-list-wrongly-positioned.html as I didn't find a way to create a reliable layout test.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::clampScrollOffset):
Fixed the clamping logic to ensure that the scroll offset's dimensions are positive.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Part 1 of removing PlatformString.h, move remaining functions to new homes
https://bugs.webkit.org/show_bug.cgi?id=95702

Reviewed by Beth Dakin.

Source/WebCore:

Move utf8Buffer() to SharedBuffer.h/cpp
Move numGraphemeClusters() and numCharactersInGraphemeClusters() to TextBreakIterator.h/cpp

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
Update projects.

* platform/text/TextAllInOne.cpp:
Add TextBreakIterator.cpp.

* editing/Editor.h:
Forward declare SharedBuffer, now that PlatformString.h doesn't.

* html/InputType.cpp:
#include TextBreakIterator.h.

* loader/appcache/ApplicationCacheStorage.h:
Replace inclusion of PlatformString.h with WTFString.h and forward declare SharedBuffer.

* platform/LocalizedStrings.cpp:
Replace inclusion of PlatformString.h with TextBreakIterator.h

* platform/SharedBuffer.cpp:
* platform/SharedBuffer.h:
Move utf8Buffer() here.

* platform/text/PlatformString.h:
Remove everything except the #include of WTFString.h.

* platform/text/TextBreakIterator.cpp: Renamed from Source/WebCore/platform/text/String.cpp.
(WebCore::numGraphemeClusters):
(WebCore::numCharactersInGraphemeClusters):
* platform/text/TextBreakIterator.h:
Move numGraphemeClusters() and numCharactersInGraphemeClusters() here.

Source/WebKit2:

* UIProcess/WebPageProxy.h:
Forward declare SharedBuffer.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Attempt to fix build failure on Win

Remove chromium/public/WebOfferAnswerRequest.h from Platform.gypi,
which was added in r127501, but doesn't exist. Unreviewed.

* Platform.gypi:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Rebaseline tests after http://trac.webkit.org/changeset/127354.

* platform/win/fast/text/international/text-spliced-font-expected.txt:
* platform/win/fast/writing-mode/border-vertical-lr-expected.txt:
* platform/win/fast/writing-mode/japanese-lr-selection-expected.txt:
* platform/win/fast/writing-mode/japanese-lr-text-expected.txt:
* platform/win/fast/writing-mode/japanese-rl-selection-expected.txt:
* platform/win/fast/writing-mode/japanese-rl-text-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Adding test inspector/timeline/timeline-decode-resize.html to Windows skip list.
It fails on both Windows and Mac: https://bugs.webkit.org/show_bug.cgi?id=94374.

* platform/win/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed test expectation update after r127457

* platform/chromium/TestExpectations:

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