Selection services menu dropdown is in the wrong place when selecting some text on Yelp
https://bugs.webkit.org/show_bug.cgi?id=135582
<rdar://problem/17837636>

Reviewed by Simon Fraser.

* editing/SelectionRectGatherer.cpp:
(WebCore::SelectionRectGatherer::addRect):
(WebCore::SelectionRectGatherer::addGapRects):
(WebCore::SelectionRectGatherer::addRects): Deleted.
Rename addRects to addGapRects for clarity.
Map rects and gapRects to absolute RenderView coordinates so that
they are in a form WebKit2 can use. Previously they were sometimes
relative to a different repaint container, but that information was
lost when moving through SelectionRectGatherer.

Ideally we would keep selection rects as full quads instead of rects
for more of their life, but that problem is much deeper than just SelectionRectGatherer.

* editing/SelectionRectGatherer.h:
Add a comment clarifying the coordinate space of the stored selection rects.

* rendering/RenderView.cpp:
(WebCore::RenderView::applySubtreeSelection):
Rename addRects to addGapRects for clarity.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172013 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Progress towards CMake on Mac.
https://bugs.webkit.org/show_bug.cgi?id=135528

Reviewed by Gyuyoung Kim.


.: 
* Source/cmake/OptionsMac.cmake:
Made options list based on FeatureDefines.xcconfig files.

Source/JavaScriptCore: 
* CMakeLists.txt:
Include necessary directories and copy all necessary forwarding headers.
Only compile UDis86Disassembler.cpp if we're using UDIS86.
* PlatformMac.cmake: Added.
* tools/CodeProfiling.cpp:
Compile fix.  Include sys/time.h on darwin, too.

Source/WebCore: 
* PlatformMac.cmake: Added.

Source/WTF: 
* wtf/CMakeLists.txt:
Include text directory.
* wtf/PlatformMac.cmake: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Check for null frame when processing geolocation authorization request
https://bugs.webkit.org/show_bug.cgi?id=135577
<rdar://problem/17896295>

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-08-04
Reviewed by Geoffrey Garen.


Source/WebKit/mac: 
* WebCoreSupport/WebGeolocationClient.mm:
(WebGeolocationClient::requestPermission):

Source/WebKit2: 
I could have put the null check in GeolocationController instead of the WebKit layer,
but that would be a little weird as GeolocationController knows nothing about how
the WebKit layer decides what to do with requests.

* WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
(WebKit::GeolocationPermissionRequestManager::startRequestForGeolocation):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Unreviewed GTK gardening.

* platform/gtk/TestExpectations: Report and mark new failures after 172008 and r172010.
Remove expectations for test that now pass after r171964 (revert of r171957).
Update expectations for new flaky tests.

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