-
eae@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=81538 Reviewed by Eric Seidel. Fix usage of LayoutUnits and conversions between types in page code. No new tests. * page/DOMWindow.cpp: (WebCore::DOMWindow::innerHeight): (WebCore::DOMWindow::innerWidth): Explicitly cast long to int. InspectorInstrumentation requires a long and FractionalLayoutUnit has no constructor that takes long. * page/EventHandler.cpp: (WebCore::EventHandler::sendContextMenuEventForKey): Pixel snap overflow rect as selection rects are integer based. * page/FrameView.cpp: (WebCore::FrameView::scrollContentsFastPath): Pixel snap repaint rects when computing update rect as all scrolling is done on integer bounds. * page/GestureTapHighlighter.cpp: Change rects vector to IntRect as addFocusRingRects operates on IntRects. * page/Page.cpp: (WebCore::Page::addRelevantRepaintedObject): (WebCore::Page::addRelevantUnpaintedObject): Change paint methods to take a LayoutRect paint rect. * page/SpatialNavigation.cpp: (WebCore::distanceDataForNode): Change distance calculation to use floats instead of converting to float at the end. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111243 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fdb2f38a