No subject


Fri Mar 7 15:32:22 PST 2014


pixelSnappedIntRect*() to snappedIntRect*().

No change in functionality.

Source/WebCore:

* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::boundingBoxForQuads):
(WebCore::AccessibilityObject::isOnscreen):
(WebCore::AccessibilityObject::scrollToMakeVisible):
* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::pixelSnappedBoundingBoxRect):
(WebCore::AccessibilityObject::pixelSnappedElementRect):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::isOffScreen):
(WebCore::AccessibilityRenderObject::boundsForVisiblePositionRange):
* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper accessibilityActivationPoint]):
(-[WebAccessibilityObjectWrapper accessibilityFrame]):
* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper position]):
(-[WebAccessibilityObjectWrapper accessibilityShowContextMenu]):
* bindings/objc/DOMUIKitExtensions.mm:
(-[DOMHTMLAreaElement boundingBoxWithOwner:]):
(-[DOMHTMLAreaElement absoluteQuadWithOwner:]):
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::computedTransform):
* dom/Node.h:
(WebCore::Node::pixelSnappedBoundingBox):
(WebCore::Node::pixelSnappedRenderRect):
* editing/RenderedPosition.cpp:
(WebCore::RenderedPosition::absoluteRect):
* editing/mac/FrameSelectionMac.mm:
(WebCore::FrameSelection::notifyAccessibilityForSelectionChange):
* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::paint):
* inspector/InspectorOverlay.cpp:
(WebCore::buildObjectForElementInfo):
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::didPaint):
* page/FrameSnapshotting.cpp:
(WebCore::snapshotNode):
* page/FrameView.cpp:
(WebCore::FrameView::scrollContentsFastPath):
(WebCore::FrameView::extendedBackgroundRectForPainting):
(WebCore::FrameView::windowClipRectForFrameOwner):
(WebCore::FrameView::convertFromRendererToContainingView):
* page/Page.cpp:
(WebCore::Page::addRelevantRepaintedObject):
(WebCore::Page::addRelevantUnpaintedObject):
* page/ios/FrameIOS.mm:
(WebCore::ancestorRespondingToClickEvents):
* platform/DragImage.cpp:
(WebCore::createDragImageForImage):
* platform/graphics/LayoutRect.cpp:
(WebCore::enclosingRectToDevicePixels):
(WebCore::enclosingRectForPainting): Deleted.
* platform/graphics/LayoutRect.h:
(WebCore::snappedIntRect):
(WebCore::snappedIntRectFromEdges):
(WebCore::snapRectToDevicePixels):
(WebCore::snapRectToDevicePixelsWithWritingDirection):
(WebCore::pixelSnappedIntRect): Deleted.
(WebCore::pixelSnappedIntRectFromEdges): Deleted.
(WebCore::pixelSnappedForPainting): Deleted.
(WebCore::directionalPixelSnappedForPainting): Deleted.
* platform/graphics/RoundedRect.cpp:
(WebCore::RoundedRect::pixelSnappedRoundedRectForPainting):
* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::computePixelAlignment):
* platform/text/TextStream.cpp:
(WebCore::TextStream::operator<<):
* rendering/EllipsisBox.cpp:
(WebCore::EllipsisBox::paintSelection):
* rendering/FilterEffectRenderer.cpp:
(WebCore::FilterEffectRendererHelper::applyFilterEffect):
* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::paint):
* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::paintSelection):
(WebCore::InlineTextBox::paintCompositionBackground):
(WebCore::InlineTextBox::paintTextMatchMarker):
(WebCore::InlineTextBox::positionForOffset):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::addVisualOverflowFromTheme):
(WebCore::RenderBlock::paint):
(WebCore::RenderBlock::blockSelectionGap):
(WebCore::RenderBlock::logicalLeftSelectionGap):
(WebCore::RenderBlock::logicalRightSelectionGap):
(WebCore::RenderBlock::absoluteRects):
(WebCore::RenderBlock::addFocusRingRects):
* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::clipOutFloatingObjects):
(WebCore::RenderBlockFlow::addFocusRingRectsForInlineChildren):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::absoluteRects):
(WebCore::RenderBox::absoluteContentBox):
(WebCore::RenderBox::outlineBoundsForRepaint):
(WebCore::RenderBox::addFocusRingRects):
(WebCore::RenderBox::getBackgroundPaintedExtent):
(WebCore::RenderBox::pushContentsClip):
(WebCore::RenderBox::computeRectForRepaint):
* rendering/RenderBox.h:
(WebCore::RenderBox::pixelSnappedFrameRect):
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::paintFillLayerExtended):
(WebCore::RenderBoxModelObject::pixelSnapBackgroundImageGeometryForPainti=
ng):
(WebCore::RenderBoxModelObject::paintNinePieceImage):
(WebCore::RenderBoxModelObject::paintBorder):
(WebCore::RenderBoxModelObject::drawBoxSideFromPath):
(WebCore::RenderBoxModelObject::paintBoxShadow):
* rendering/RenderDetailsMarker.cpp:
(WebCore::RenderDetailsMarker::paint):
* rendering/RenderEmbeddedObject.cpp:
(WebCore::RenderEmbeddedObject::paintSnapshotImage):
(WebCore::RenderEmbeddedObject::isReplacementObscured):
* rendering/RenderFieldset.cpp:
(WebCore::RenderFieldset::paintBoxDecorations):
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::addRegionsVisualOverflowFromTheme):
* rendering/RenderFrameSet.cpp:
(WebCore::RenderFrameSet::paint):
(WebCore::RenderFrameSet::layout):
(WebCore::RenderFrameSet::positionFramesWithFlattening):
* rendering/RenderHTMLCanvas.cpp:
(WebCore::RenderHTMLCanvas::paintReplaced):
* rendering/RenderImage.cpp:
(WebCore::RenderImage::paintReplaced):
* rendering/RenderInline.cpp:
(WebCore::RenderInline::paintOutlineForLine):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::updateTransform):
(WebCore::RenderLayer::currentTransform):
(WebCore::RenderLayer::beginTransparencyLayers):
(WebCore::RenderLayer::scrollRectToVisible):
(WebCore::RenderLayer::scrollCornerRect):
(WebCore::RenderLayer::drawPlatformResizerImage):
(WebCore::RenderLayer::paintResizer):
(WebCore::RenderLayer::hitTestOverflowControls):
(WebCore::RenderLayer::clipToRect):
(WebCore::RenderLayer::paintLayerByApplyingTransform):
(WebCore::RenderLayer::paintOverflowControlsForFragments):
(WebCore::RenderLayer::hitTestResizerInFragments):
(WebCore::RenderLayer::calculateClipRects):
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateTransform):
(WebCore::RenderLayerBacking::updateGeometry):
(WebCore::RenderLayerBacking::resetContentsRect):
(WebCore::RenderLayerBacking::updateImageContents):
(WebCore::RenderLayerBacking::backgroundBoxForPainting):
(WebCore::RenderLayerBacking::setContentsNeedDisplayInRect):
(WebCore::RenderLayerBacking::paintContents):
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::addToOverlapMap):
(WebCore::RenderLayerCompositor::requiresCompositingForPlugin):
(WebCore::RenderLayerCompositor::requiresCompositingForFrame):
(WebCore::RenderLayerCompositor::paintContents):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::addFocusRingRects):
(WebCore::RenderListBox::paintScrollbar):
(WebCore::RenderListBox::paintItemBackground):
* rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::paint):
* rendering/RenderMeter.cpp:
(WebCore::RenderMeter::updateLogicalWidth):
(WebCore::RenderMeter::computeLogicalHeight):
* rendering/RenderMultiColumnSet.cpp:
(WebCore::RenderMultiColumnSet::paintColumnRules):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::drawLineForBoxSide):
(WebCore::RenderObject::addPDFURLRect):
(WebCore::RenderObject::paintOutline):
(WebCore::RenderObject::absoluteBoundingBoxRect):
(WebCore::RenderObject::repaintUsingContainer):
(WebCore::RenderObject::repaintSlowRepaintObject):
(WebCore::RenderObject::pixelSnappedAbsoluteClippedOverflowRect):
* rendering/RenderProgress.cpp:
(WebCore::RenderProgress::computeLogicalHeight):
* rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::paint):
* rendering/RenderScrollbarPart.cpp:
(WebCore::RenderScrollbarPart::paintIntoRect):
* rendering/RenderSearchField.cpp:
(WebCore::RenderSearchField::showPopup):
* rendering/RenderSnapshottedPlugIn.cpp:
(WebCore::RenderSnapshottedPlugIn::paintSnapshot):
* rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::paintCollapsedBorders):
* rendering/RenderTextControl.cpp:
(WebCore::RenderTextControl::addFocusRingRects):
* rendering/RenderTextControlSingleLine.cpp:
(WebCore::RenderTextControlSingleLine::paint):
* rendering/RenderTheme.cpp:
(WebCore::RenderTheme::paint):
(WebCore::RenderTheme::paintBorderOnly):
(WebCore::RenderTheme::paintDecorations):
* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::paintSnapshottedPluginOverlay):
* rendering/RenderTreeAsText.cpp:
(WebCore::write):
* rendering/RenderVideo.cpp:
(WebCore::RenderVideo::videoBox):
(WebCore::RenderVideo::paintReplaced):
* rendering/RenderView.cpp:
(WebCore::RenderView::repaintViewRectangle):
(WebCore::RenderView::computeRectForRepaint):
(WebCore::RenderView::absoluteRects):
(WebCore::RenderView::selectionBounds):
(WebCore::RenderView::unscaledDocumentRect):
* rendering/RenderView.h:
* rendering/RenderWidget.cpp:
(WebCore::RenderWidget::paintContents):
(WebCore::RenderWidget::paint):
* rendering/SimpleLineLayoutFunctions.cpp:
(WebCore::SimpleLineLayout::paintDebugBorders):
* rendering/shapes/Shape.cpp:
(WebCore::Shape::createRasterShape):
* rendering/svg/RenderSVGModelObject.cpp:
(WebCore::RenderSVGModelObject::outlineBoundsForRepaint):
* rendering/svg/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::paintReplaced):
* rendering/svg/SVGInlineTextBox.cpp:
(WebCore::SVGInlineTextBox::selectionRectForTextFragment):

Source/WebKit/mac:

* WebView/WebView.mm:
(-[WebView _dashboardRegions]):
(-[WebView trackedRepaintRects]):

Source/WebKit2:

* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
(WebKit::InjectedBundleNodeHandle::renderedImage):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::snapshotNode):
* WebProcess/WebPage/mac/ServicesOverlayController.mm:
(WebKit::ServicesOverlayController::buildSelectionHighlight):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href=3D"#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeL=
og</a></li>
<li><a href=3D"#trunkSourceWebCoreaccessibilityAccessibilityObjectcpp">tr=
unk/Source/WebCore/accessibility/AccessibilityObject.cpp</a></li>
<li><a href=3D"#trunkSourceWebCoreaccessibilityAccessibilityObjecth">trun=
k/Source/WebCore/accessibility/AccessibilityObject.h</a></li>
<li><a href=3D"#trunkSourceWebCoreaccessibilityAccessibilityRenderObjectc=
pp">trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp</a><=
/li>
<li><a href=3D"#trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectW=
rapperIOSmm">trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjec=
tWrapperIOS.mm</a></li>
<li><a href=3D"#trunkSourceWebCoreaccessibilitymacWebAccessibilityObjectW=
rapperMacmm">trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjec=
tWrapperMac.mm</a></li>
<li><a href=3D"#trunkSourceWebCorebindingsobjcDOMUIKitExtensionsmm">trunk=
/Source/WebCore/bindings/objc/DOMUIKitExtensions.mm</a></li>
<li><a href=3D"#trunkSourceWebCorecssCSSComputedStyleDeclarationcpp">trun=
k/Source/WebCore/css/CSSComputedStyleDeclaration.cpp</a></li>
<li><a href=3D"#trunkSourceWebCoredomNodeh">trunk/Source/WebCore/dom/Node=
.h</a></li>
<li><a href=3D"#trunkSourceWebCoreeditingRenderedPositioncpp">trunk/Sourc=
e/WebCore/editing/RenderedPosition.cpp</a></li>
<li><a href=3D"#trunkSourceWebCoreeditingmacFrameSelectionMacmm">trunk/So=
urce/WebCore/editing/mac/FrameSelectionMac.mm</a></li>
<li><a href=3D"#trunkSourceWebCorehtmlHTMLCanvasElementcpp">trunk/Source/=
WebCore/html/HTMLCanvasElement.cpp</a></li>
<li><a href=3D"#trunkSourceWebCoreinspectorInspectorOverlaycpp">trunk/Sou=
rce/WebCore/inspector/InspectorOverlay.cpp</a></li>
<li><a href=3D"#trunkSourceWebCoreinspectorInspectorPageAgentcpp">trunk/S=
ource/WebCore/inspector/InspectorPageAgent.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorepageFrameSnapshottingcpp">trunk/Source/=
WebCore/page/FrameSnapshotting.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorepageFrameViewcpp">trunk/Source/WebCore/=
page/FrameView.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorepagePagecpp">trunk/Source/WebCore/page/=
Page.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorepageiosFrameIOSmm">trunk/Source/WebCore=
/page/ios/FrameIOS.mm</a></li>
<li><a href=3D"#trunkSourceWebCoreplatformDragImagecpp">trunk/Source/WebC=
ore/platform/DragImage.cpp</a></li>
<li><a href=3D"#trunkSourceWebCoreplatformgraphicsLayoutRectcpp">trunk/So=
urce/WebCore/platform/graphics/LayoutRect.cpp</a></li>
<li><a href=3D"#trunkSourceWebCoreplatformgraphicsLayoutRecth">trunk/Sour=
ce/WebCore/platform/graphics/LayoutRect.h</a></li>
<li><a href=3D"#trunkSourceWebCoreplatformgraphicsRoundedRectcpp">trunk/S=
ource/WebCore/platform/graphics/RoundedRect.cpp</a></li>
<li><a href=3D"#trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp">t=
runk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp</a></li>
<li><a href=3D"#trunkSourceWebCoreplatformtextTextStreamcpp">trunk/Source=
/WebCore/platform/text/TextStream.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingEllipsisBoxcpp">trunk/Source/W=
ebCore/rendering/EllipsisBox.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingFilterEffectRenderercpp">trunk=
/Source/WebCore/rendering/FilterEffectRenderer.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingInlineFlowBoxcpp">trunk/Source=
/WebCore/rendering/InlineFlowBox.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingInlineTextBoxcpp">trunk/Source=
/WebCore/rendering/InlineTextBox.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderBlockcpp">trunk/Source/W=
ebCore/rendering/RenderBlock.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderBlockFlowcpp">trunk/Sour=
ce/WebCore/rendering/RenderBlockFlow.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderBoxcpp">trunk/Source/Web=
Core/rendering/RenderBox.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderBoxh">trunk/Source/WebCo=
re/rendering/RenderBox.h</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderBoxModelObjectcpp">trunk=
/Source/WebCore/rendering/RenderBoxModelObject.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderDetailsMarkercpp">trunk/=
Source/WebCore/rendering/RenderDetailsMarker.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderEmbeddedObjectcpp">trunk=
/Source/WebCore/rendering/RenderEmbeddedObject.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderFieldsetcpp">trunk/Sourc=
e/WebCore/rendering/RenderFieldset.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderFlowThreadcpp">trunk/Sou=
rce/WebCore/rendering/RenderFlowThread.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderFrameSetcpp">trunk/Sourc=
e/WebCore/rendering/RenderFrameSet.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderHTMLCanvascpp">trunk/Sou=
rce/WebCore/rendering/RenderHTMLCanvas.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderImagecpp">trunk/Source/W=
ebCore/rendering/RenderImage.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderInlinecpp">trunk/Source/=
WebCore/rendering/RenderInline.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderLayercpp">trunk/Source/W=
ebCore/rendering/RenderLayer.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderLayerBackingcpp">trunk/S=
ource/WebCore/rendering/RenderLayerBacking.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderLayerCompositorcpp">trun=
k/Source/WebCore/rendering/RenderLayerCompositor.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderListBoxcpp">trunk/Source=
/WebCore/rendering/RenderListBox.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderListMarkercpp">trunk/Sou=
rce/WebCore/rendering/RenderListMarker.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderMetercpp">trunk/Source/W=
ebCore/rendering/RenderMeter.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderMultiColumnSetcpp">trunk=
/Source/WebCore/rendering/RenderMultiColumnSet.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderObjectcpp">trunk/Source/=
WebCore/rendering/RenderObject.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderProgresscpp">trunk/Sourc=
e/WebCore/rendering/RenderProgress.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderReplacedcpp">trunk/Sourc=
e/WebCore/rendering/RenderReplaced.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderScrollbarPartcpp">trunk/=
Source/WebCore/rendering/RenderScrollbarPart.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderSearchFieldcpp">trunk/So=
urce/WebCore/rendering/RenderSearchField.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderSnapshottedPlugIncpp">tr=
unk/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderTableCellcpp">trunk/Sour=
ce/WebCore/rendering/RenderTableCell.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderTextControlcpp">trunk/So=
urce/WebCore/rendering/RenderTextControl.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderTextControlSingleLinecpp=
">trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderThemecpp">trunk/Source/W=
ebCore/rendering/RenderTheme.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderThemeMacmm">trunk/Source=
/WebCore/rendering/RenderThemeMac.mm</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderTreeAsTextcpp">trunk/Sou=
rce/WebCore/rendering/RenderTreeAsText.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderVideocpp">trunk/Source/W=
ebCore/rendering/RenderVideo.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderViewcpp">trunk/Source/We=
bCore/rendering/RenderView.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderViewh">trunk/Source/WebC=
ore/rendering/RenderView.h</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingRenderWidgetcpp">trunk/Source/=
WebCore/rendering/RenderWidget.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingSimpleLineLayoutFunctionscpp">=
trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingshapesShapecpp">trunk/Source/W=
ebCore/rendering/shapes/Shape.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingsvgRenderSVGModelObjectcpp">tr=
unk/Source/WebCore/rendering/svg/RenderSVGModelObject.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingsvgRenderSVGRootcpp">trunk/Sou=
rce/WebCore/rendering/svg/RenderSVGRoot.cpp</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingsvgSVGInlineTextBoxcpp">trunk/=
Source/WebCore/rendering/svg/SVGInlineTextBox.cpp</a></li>
<li><a href=3D"#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/Ch=
angeLog</a></li>
<li><a href=3D"#trunkSourceWebKitmacWebViewWebViewmm">trunk/Source/WebKit=
/mac/WebView/WebView.mm</a></li>
<li><a href=3D"#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeL=
og</a></li>
<li><a href=3D"#trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBund=
leNodeHandlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/Injec=
tedBundleNodeHandle.cpp</a></li>
<li><a href=3D"#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Sour=
ce/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
<li><a href=3D"#trunkSourceWebKit2WebProcessWebPagemacServicesOverlayCont=
rollermm">trunk/Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayCont=
roller.mm</a></li>
</ul>

</div>
<div id=3D"patch">
<h3>Diff</h3>
<a id=3D"trunkSourceWebCoreChangeLog"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (1730=
46 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/ChangeLog	2014-08-28 03:45:=
35 UTC (rev 173046)
+++ trunk/Source/WebCore/ChangeLog	2014-08-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -1,3 +1,233 @@
</span><ins>+2014-08-27  Zalan Bujtas  &lt;zalan at apple.com&gt;
+
+        Subpixel layout: Rename LayoutRect's device pixel snapping funct=
ions.
+        https://bugs.webkit.org/show_bug.cgi?id=3D136319
+
+        Reviewed by Simon Fraser.
+
+        From pixelSnappedForPainting() to snapRectToDevicePixels() and=20
+        pixelSnappedIntRect*() to snappedIntRect*().
+
+        No change in functionality.
+
+        * accessibility/AccessibilityObject.cpp:
+        (WebCore::AccessibilityObject::boundingBoxForQuads):
+        (WebCore::AccessibilityObject::isOnscreen):
+        (WebCore::AccessibilityObject::scrollToMakeVisible):
+        * accessibility/AccessibilityObject.h:
+        (WebCore::AccessibilityObject::pixelSnappedBoundingBoxRect):
+        (WebCore::AccessibilityObject::pixelSnappedElementRect):
+        * accessibility/AccessibilityRenderObject.cpp:
+        (WebCore::AccessibilityRenderObject::isOffScreen):
+        (WebCore::AccessibilityRenderObject::boundsForVisiblePositionRan=
ge):
+        * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
+        (-[WebAccessibilityObjectWrapper accessibilityActivationPoint]):
+        (-[WebAccessibilityObjectWrapper accessibilityFrame]):
+        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
+        (-[WebAccessibilityObjectWrapper position]):
+        (-[WebAccessibilityObjectWrapper accessibilityShowContextMenu]):
+        * bindings/objc/DOMUIKitExtensions.mm:
+        (-[DOMHTMLAreaElement boundingBoxWithOwner:]):
+        (-[DOMHTMLAreaElement absoluteQuadWithOwner:]):
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::computedTransform):
+        * dom/Node.h:
+        (WebCore::Node::pixelSnappedBoundingBox):
+        (WebCore::Node::pixelSnappedRenderRect):
+        * editing/RenderedPosition.cpp:
+        (WebCore::RenderedPosition::absoluteRect):
+        * editing/mac/FrameSelectionMac.mm:
+        (WebCore::FrameSelection::notifyAccessibilityForSelectionChange)=
:
+        * html/HTMLCanvasElement.cpp:
+        (WebCore::HTMLCanvasElement::paint):
+        * inspector/InspectorOverlay.cpp:
+        (WebCore::buildObjectForElementInfo):
+        * inspector/InspectorPageAgent.cpp:
+        (WebCore::InspectorPageAgent::didPaint):
+        * page/FrameSnapshotting.cpp:
+        (WebCore::snapshotNode):
+        * page/FrameView.cpp:
+        (WebCore::FrameView::scrollContentsFastPath):
+        (WebCore::FrameView::extendedBackgroundRectForPainting):
+        (WebCore::FrameView::windowClipRectForFrameOwner):
+        (WebCore::FrameView::convertFromRendererToContainingView):
+        * page/Page.cpp:
+        (WebCore::Page::addRelevantRepaintedObject):
+        (WebCore::Page::addRelevantUnpaintedObject):
+        * page/ios/FrameIOS.mm:
+        (WebCore::ancestorRespondingToClickEvents):
+        * platform/DragImage.cpp:
+        (WebCore::createDragImageForImage):
+        * platform/graphics/LayoutRect.cpp:
+        (WebCore::enclosingRectToDevicePixels):
+        (WebCore::enclosingRectForPainting): Deleted.
+        * platform/graphics/LayoutRect.h:
+        (WebCore::snappedIntRect):
+        (WebCore::snappedIntRectFromEdges):
+        (WebCore::snapRectToDevicePixels):
+        (WebCore::snapRectToDevicePixelsWithWritingDirection):
+        (WebCore::pixelSnappedIntRect): Deleted.
+        (WebCore::pixelSnappedIntRectFromEdges): Deleted.
+        (WebCore::pixelSnappedForPainting): Deleted.
+        (WebCore::directionalPixelSnappedForPainting): Deleted.
+        * platform/graphics/RoundedRect.cpp:
+        (WebCore::RoundedRect::pixelSnappedRoundedRectForPainting):
+        * platform/graphics/ca/GraphicsLayerCA.cpp:
+        (WebCore::GraphicsLayerCA::computePixelAlignment):
+        * platform/text/TextStream.cpp:
+        (WebCore::TextStream::operator&lt;&lt;):
+        * rendering/EllipsisBox.cpp:
+        (WebCore::EllipsisBox::paintSelection):
+        * rendering/FilterEffectRenderer.cpp:
+        (WebCore::FilterEffectRendererHelper::applyFilterEffect):
+        * rendering/InlineFlowBox.cpp:
+        (WebCore::InlineFlowBox::paint):
+        * rendering/InlineTextBox.cpp:
+        (WebCore::InlineTextBox::paintSelection):
+        (WebCore::InlineTextBox::paintCompositionBackground):
+        (WebCore::InlineTextBox::paintTextMatchMarker):
+        (WebCore::InlineTextBox::positionForOffset):
+        * rendering/RenderBlock.cpp:
+        (WebCore::RenderBlock::addVisualOverflowFromTheme):
+        (WebCore::RenderBlock::paint):
+        (WebCore::RenderBlock::blockSelectionGap):
+        (WebCore::RenderBlock::logicalLeftSelectionGap):
+        (WebCore::RenderBlock::logicalRightSelectionGap):
+        (WebCore::RenderBlock::absoluteRects):
+        (WebCore::RenderBlock::addFocusRingRects):
+        * rendering/RenderBlockFlow.cpp:
+        (WebCore::RenderBlockFlow::clipOutFloatingObjects):
+        (WebCore::RenderBlockFlow::addFocusRingRectsForInlineChildren):
+        * rendering/RenderBox.cpp:
+        (WebCore::RenderBox::absoluteRects):
+        (WebCore::RenderBox::absoluteContentBox):
+        (WebCore::RenderBox::outlineBoundsForRepaint):
+        (WebCore::RenderBox::addFocusRingRects):
+        (WebCore::RenderBox::getBackgroundPaintedExtent):
+        (WebCore::RenderBox::pushContentsClip):
+        (WebCore::RenderBox::computeRectForRepaint):
+        * rendering/RenderBox.h:
+        (WebCore::RenderBox::pixelSnappedFrameRect):
+        * rendering/RenderBoxModelObject.cpp:
+        (WebCore::RenderBoxModelObject::paintFillLayerExtended):
+        (WebCore::RenderBoxModelObject::pixelSnapBackgroundImageGeometry=
ForPainting):
+        (WebCore::RenderBoxModelObject::paintNinePieceImage):
+        (WebCore::RenderBoxModelObject::paintBorder):
+        (WebCore::RenderBoxModelObject::drawBoxSideFromPath):
+        (WebCore::RenderBoxModelObject::paintBoxShadow):
+        * rendering/RenderDetailsMarker.cpp:
+        (WebCore::RenderDetailsMarker::paint):
+        * rendering/RenderEmbeddedObject.cpp:
+        (WebCore::RenderEmbeddedObject::paintSnapshotImage):
+        (WebCore::RenderEmbeddedObject::isReplacementObscured):
+        * rendering/RenderFieldset.cpp:
+        (WebCore::RenderFieldset::paintBoxDecorations):
+        * rendering/RenderFlowThread.cpp:
+        (WebCore::RenderFlowThread::addRegionsVisualOverflowFromTheme):
+        * rendering/RenderFrameSet.cpp:
+        (WebCore::RenderFrameSet::paint):
+        (WebCore::RenderFrameSet::layout):
+        (WebCore::RenderFrameSet::positionFramesWithFlattening):
+        * rendering/RenderHTMLCanvas.cpp:
+        (WebCore::RenderHTMLCanvas::paintReplaced):
+        * rendering/RenderImage.cpp:
+        (WebCore::RenderImage::paintReplaced):
+        * rendering/RenderInline.cpp:
+        (WebCore::RenderInline::paintOutlineForLine):
+        * rendering/RenderLayer.cpp:
+        (WebCore::RenderLayer::updateTransform):
+        (WebCore::RenderLayer::currentTransform):
+        (WebCore::RenderLayer::beginTransparencyLayers):
+        (WebCore::RenderLayer::scrollRectToVisible):
+        (WebCore::RenderLayer::scrollCornerRect):
+        (WebCore::RenderLayer::drawPlatformResizerImage):
+        (WebCore::RenderLayer::paintResizer):
+        (WebCore::RenderLayer::hitTestOverflowControls):
+        (WebCore::RenderLayer::clipToRect):
+        (WebCore::RenderLayer::paintLayerByApplyingTransform):
+        (WebCore::RenderLayer::paintOverflowControlsForFragments):
+        (WebCore::RenderLayer::hitTestResizerInFragments):
+        (WebCore::RenderLayer::calculateClipRects):
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::RenderLayerBacking::updateTransform):
+        (WebCore::RenderLayerBacking::updateGeometry):
+        (WebCore::RenderLayerBacking::resetContentsRect):
+        (WebCore::RenderLayerBacking::updateImageContents):
+        (WebCore::RenderLayerBacking::backgroundBoxForPainting):
+        (WebCore::RenderLayerBacking::setContentsNeedDisplayInRect):
+        (WebCore::RenderLayerBacking::paintContents):
+        * rendering/RenderLayerCompositor.cpp:
+        (WebCore::RenderLayerCompositor::addToOverlapMap):
+        (WebCore::RenderLayerCompositor::requiresCompositingForPlugin):
+        (WebCore::RenderLayerCompositor::requiresCompositingForFrame):
+        (WebCore::RenderLayerCompositor::paintContents):
+        * rendering/RenderListBox.cpp:
+        (WebCore::RenderListBox::addFocusRingRects):
+        (WebCore::RenderListBox::paintScrollbar):
+        (WebCore::RenderListBox::paintItemBackground):
+        * rendering/RenderListMarker.cpp:
+        (WebCore::RenderListMarker::paint):
+        * rendering/RenderMeter.cpp:
+        (WebCore::RenderMeter::updateLogicalWidth):
+        (WebCore::RenderMeter::computeLogicalHeight):
+        * rendering/RenderMultiColumnSet.cpp:
+        (WebCore::RenderMultiColumnSet::paintColumnRules):
+        * rendering/RenderObject.cpp:
+        (WebCore::RenderObject::drawLineForBoxSide):
+        (WebCore::RenderObject::addPDFURLRect):
+        (WebCore::RenderObject::paintOutline):
+        (WebCore::RenderObject::absoluteBoundingBoxRect):
+        (WebCore::RenderObject::repaintUsingContainer):
+        (WebCore::RenderObject::repaintSlowRepaintObject):
+        (WebCore::RenderObject::pixelSnappedAbsoluteClippedOverflowRect)=
:
+        * rendering/RenderProgress.cpp:
+        (WebCore::RenderProgress::computeLogicalHeight):
+        * rendering/RenderReplaced.cpp:
+        (WebCore::RenderReplaced::paint):
+        * rendering/RenderScrollbarPart.cpp:
+        (WebCore::RenderScrollbarPart::paintIntoRect):
+        * rendering/RenderSearchField.cpp:
+        (WebCore::RenderSearchField::showPopup):
+        * rendering/RenderSnapshottedPlugIn.cpp:
+        (WebCore::RenderSnapshottedPlugIn::paintSnapshot):
+        * rendering/RenderTableCell.cpp:
+        (WebCore::RenderTableCell::paintCollapsedBorders):
+        * rendering/RenderTextControl.cpp:
+        (WebCore::RenderTextControl::addFocusRingRects):
+        * rendering/RenderTextControlSingleLine.cpp:
+        (WebCore::RenderTextControlSingleLine::paint):
+        * rendering/RenderTheme.cpp:
+        (WebCore::RenderTheme::paint):
+        (WebCore::RenderTheme::paintBorderOnly):
+        (WebCore::RenderTheme::paintDecorations):
+        * rendering/RenderThemeMac.mm:
+        (WebCore::RenderThemeMac::paintSnapshottedPluginOverlay):
+        * rendering/RenderTreeAsText.cpp:
+        (WebCore::write):
+        * rendering/RenderVideo.cpp:
+        (WebCore::RenderVideo::videoBox):
+        (WebCore::RenderVideo::paintReplaced):
+        * rendering/RenderView.cpp:
+        (WebCore::RenderView::repaintViewRectangle):
+        (WebCore::RenderView::computeRectForRepaint):
+        (WebCore::RenderView::absoluteRects):
+        (WebCore::RenderView::selectionBounds):
+        (WebCore::RenderView::unscaledDocumentRect):
+        * rendering/RenderView.h:
+        * rendering/RenderWidget.cpp:
+        (WebCore::RenderWidget::paintContents):
+        (WebCore::RenderWidget::paint):
+        * rendering/SimpleLineLayoutFunctions.cpp:
+        (WebCore::SimpleLineLayout::paintDebugBorders):
+        * rendering/shapes/Shape.cpp:
+        (WebCore::Shape::createRasterShape):
+        * rendering/svg/RenderSVGModelObject.cpp:
+        (WebCore::RenderSVGModelObject::outlineBoundsForRepaint):
+        * rendering/svg/RenderSVGRoot.cpp:
+        (WebCore::RenderSVGRoot::paintReplaced):
+        * rendering/svg/SVGInlineTextBox.cpp:
+        (WebCore::SVGInlineTextBox::selectionRectForTextFragment):
+
</ins><span class=3D"cx"> 2014-08-27  Daniel Bates  &lt;dabates at apple.com=
&gt;
</span><span class=3D"cx">=20
</span><span class=3D"cx">         Scrollbar corner can be drawn outside =
containing frame
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreaccessibilityAccessibilityObjectcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/accessibility/A=
ccessibilityObject.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/accessibility/Accessibility=
Object.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.cpp	2014-08-28=
 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -766,7 +766,7 @@
</span><span class=3D"cx">             result.unite(r);
</span><span class=3D"cx">         }
</span><span class=3D"cx">     }
</span><del>-    return pixelSnappedIntRect(LayoutRect(result));
</del><ins>+    return snappedIntRect(LayoutRect(result));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">    =20
</span><span class=3D"cx"> bool AccessibilityObject::press()
</span><span class=3D"lines">@@ -2218,8 +2218,8 @@
</span><span class=3D"cx">         const AccessibilityObject* outer =3D o=
bjects[i];
</span><span class=3D"cx">         const AccessibilityObject* inner =3D o=
bjects[i - 1];
</span><span class=3D"cx">         // FIXME: unclear if we need LegacyIOS=
DocumentVisibleRect.
</span><del>-        const IntRect outerRect =3D i &lt; levels ? pixelSna=
ppedIntRect(outer-&gt;boundingBoxRect()) : outer-&gt;getScrollableAreaIfS=
crollable()-&gt;visibleContentRect(ScrollableArea::LegacyIOSDocumentVisib=
leRect);
-        const IntRect innerRect =3D pixelSnappedIntRect(inner-&gt;isAcce=
ssibilityScrollView() ? inner-&gt;parentObject()-&gt;boundingBoxRect() : =
inner-&gt;boundingBoxRect());
</del><ins>+        const IntRect outerRect =3D i &lt; levels ? snappedIn=
tRect(outer-&gt;boundingBoxRect()) : outer-&gt;getScrollableAreaIfScrolla=
ble()-&gt;visibleContentRect(ScrollableArea::LegacyIOSDocumentVisibleRect=
);
+        const IntRect innerRect =3D snappedIntRect(inner-&gt;isAccessibi=
lityScrollView() ? inner-&gt;parentObject()-&gt;boundingBoxRect() : inner=
-&gt;boundingBoxRect());
</ins><span class=3D"cx">        =20
</span><span class=3D"cx">         if (!outerRect.intersects(innerRect)) =
{
</span><span class=3D"cx">             isOnscreen =3D false;
</span><span class=3D"lines">@@ -2232,7 +2232,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void AccessibilityObject::scrollToMakeVisible(=
) const
</span><span class=3D"cx"> {
</span><del>-    IntRect objectRect =3D pixelSnappedIntRect(boundingBoxRe=
ct());
</del><ins>+    IntRect objectRect =3D snappedIntRect(boundingBoxRect());
</ins><span class=3D"cx">     objectRect.setLocation(IntPoint());
</span><span class=3D"cx">     scrollToMakeVisibleWithSubFocus(objectRect=
);
</span><span class=3D"cx"> }
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreaccessibilityAccessibilityObjecth"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/accessibility/A=
ccessibilityObject.h (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/accessibility/Accessibility=
Object.h	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/accessibility/AccessibilityObject.h	2014-08-28 0=
4:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -688,9 +688,9 @@
</span><span class=3D"cx">     virtual Element* anchorElement() const { r=
eturn nullptr; }
</span><span class=3D"cx">     virtual Element* actionElement() const { r=
eturn nullptr; }
</span><span class=3D"cx">     virtual LayoutRect boundingBoxRect() const=
 { return LayoutRect(); }
</span><del>-    IntRect pixelSnappedBoundingBoxRect() const { return pix=
elSnappedIntRect(boundingBoxRect()); }
</del><ins>+    IntRect pixelSnappedBoundingBoxRect() const { return snap=
pedIntRect(boundingBoxRect()); }
</ins><span class=3D"cx">     virtual LayoutRect elementRect() const =3D =
0;
</span><del>-    IntRect pixelSnappedElementRect() const { return pixelSn=
appedIntRect(elementRect()); }
</del><ins>+    IntRect pixelSnappedElementRect() const { return snappedI=
ntRect(elementRect()); }
</ins><span class=3D"cx">     LayoutSize size() const { return elementRec=
t().size(); }
</span><span class=3D"cx">     IntSize pixelSnappedSize() const { return =
elementRect().pixelSnappedSize(); }
</span><span class=3D"cx">     virtual IntPoint clickPoint();
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreaccessibilityAccessibilityRenderObjectcpp"></a=
>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/accessibility/A=
ccessibilityRenderObject.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/accessibility/Accessibility=
RenderObject.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp	2014=
-08-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -550,7 +550,7 @@
</span><span class=3D"cx"> bool AccessibilityRenderObject::isOffScreen() =
const
</span><span class=3D"cx"> {
</span><span class=3D"cx">     ASSERT(m_renderer);
</span><del>-    IntRect contentRect =3D pixelSnappedIntRect(m_renderer-&=
gt;absoluteClippedOverflowRect());
</del><ins>+    IntRect contentRect =3D snappedIntRect(m_renderer-&gt;abs=
oluteClippedOverflowRect());
</ins><span class=3D"cx">     // FIXME: unclear if we need LegacyIOSDocum=
entVisibleRect.
</span><span class=3D"cx">     IntRect viewRect =3D m_renderer-&gt;view()=
.frameView().visibleContentRect(ScrollableArea::LegacyIOSDocumentVisibleR=
ect);
</span><span class=3D"cx">     viewRect.intersect(contentRect);
</span><span class=3D"lines">@@ -1952,9 +1952,9 @@
</span><span class=3D"cx">     }
</span><span class=3D"cx">    =20
</span><span class=3D"cx"> #if PLATFORM(MAC)
</span><del>-    return m_renderer-&gt;view().frameView().contentsToScree=
n(pixelSnappedIntRect(ourrect));
</del><ins>+    return m_renderer-&gt;view().frameView().contentsToScreen=
(snappedIntRect(ourrect));
</ins><span class=3D"cx"> #else
</span><del>-    return pixelSnappedIntRect(ourrect);
</del><ins>+    return snappedIntRect(ourrect);
</ins><span class=3D"cx"> #endif
</span><span class=3D"cx"> }
</span><span class=3D"cx">    =20
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreaccessibilityiosWebAccessibilityObjectWrapperI=
OSmm"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/accessibility/i=
os/WebAccessibilityObjectWrapperIOS.mm (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/accessibility/ios/WebAccess=
ibilityObjectWrapperIOS.mm	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperI=
OS.mm	2014-08-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -1209,7 +1209,7 @@
</span><span class=3D"cx">     if (![self _prepareAccessibilityCall])
</span><span class=3D"cx">         return CGPointZero;
</span><span class=3D"cx">    =20
</span><del>-    IntRect rect =3D pixelSnappedIntRect(m_object-&gt;boundi=
ngBoxRect());
</del><ins>+    IntRect rect =3D snappedIntRect(m_object-&gt;boundingBoxR=
ect());
</ins><span class=3D"cx">     CGRect cgRect =3D [self convertRectToScreen=
Space:rect];
</span><span class=3D"cx">     return CGPointMake(CGRectGetMidX(cgRect), =
CGRectGetMidY(cgRect));
</span><span class=3D"cx"> }
</span><span class=3D"lines">@@ -1219,7 +1219,7 @@
</span><span class=3D"cx">     if (![self _prepareAccessibilityCall])
</span><span class=3D"cx">         return CGRectZero;
</span><span class=3D"cx">    =20
</span><del>-    IntRect rect =3D pixelSnappedIntRect(m_object-&gt;elemen=
tRect());
</del><ins>+    IntRect rect =3D snappedIntRect(m_object-&gt;elementRect(=
));
</ins><span class=3D"cx">     return [self convertRectToScreenSpace:rect]=
;
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreaccessibilitymacWebAccessibilityObjectWrapperM=
acmm"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/accessibility/m=
ac/WebAccessibilityObjectWrapperMac.mm (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/accessibility/mac/WebAccess=
ibilityObjectWrapperMac.mm	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperM=
ac.mm	2014-08-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -1818,7 +1818,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx"> - (NSValue *)position
</span><span class=3D"cx"> {
</span><del>-    IntRect rect =3D pixelSnappedIntRect(m_object-&gt;elemen=
tRect());
</del><ins>+    IntRect rect =3D snappedIntRect(m_object-&gt;elementRect(=
));
</ins><span class=3D"cx">    =20
</span><span class=3D"cx">     // The Cocoa accessibility API wants the l=
ower-left corner.
</span><span class=3D"cx">     FloatPoint floatPoint =3D FloatPoint(rect.=
x(), rect.maxY());
</span><span class=3D"lines">@@ -3189,7 +3189,7 @@
</span><span class=3D"cx">     if (!page)
</span><span class=3D"cx">         return;
</span><span class=3D"cx">    =20
</span><del>-    IntRect rect =3D pixelSnappedIntRect(m_object-&gt;elemen=
tRect());
</del><ins>+    IntRect rect =3D snappedIntRect(m_object-&gt;elementRect(=
));
</ins><span class=3D"cx">     FrameView* frameView =3D m_object-&gt;docum=
entFrameView();
</span><span class=3D"cx">    =20
</span><span class=3D"cx">     // On WK2, we need to account for the scro=
ll position.
</span></span></pre></div>
<a id=3D"trunkSourceWebCorebindingsobjcDOMUIKitExtensionsmm"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/bindings/objc/D=
OMUIKitExtensions.mm (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/bindings/objc/DOMUIKitExten=
sions.mm	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/bindings/objc/DOMUIKitExtensions.mm	2014-08-28 0=
4:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -414,7 +414,7 @@
</span><span class=3D"cx"> - (CGRect)boundingBoxWithOwner:(DOMNode *)anOw=
ner
</span><span class=3D"cx"> {
</span><span class=3D"cx">     // ignores transforms
</span><del>-    return anOwner ? pixelSnappedIntRect(core(self)-&gt;comp=
uteRect(core(anOwner)-&gt;renderer())) : CGRectZero;
</del><ins>+    return anOwner ? snappedIntRect(core(self)-&gt;computeRec=
t(core(anOwner)-&gt;renderer())) : CGRectZero;
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> - (WKQuad)absoluteQuadWithOwner:(DOMNode *)anO=
wner
</span><span class=3D"lines">@@ -422,7 +422,7 @@
</span><span class=3D"cx">     if (anOwner) {
</span><span class=3D"cx">         // FIXME: ECLAIR
</span><span class=3D"cx">         //WebCore::FloatQuad theQuad =3D core(=
self)-&gt;getAbsoluteQuad(core(anOwner)-&gt;renderer());
</span><del>-        WebCore::IntRect rect =3D pixelSnappedIntRect(core(s=
elf)-&gt;computeRect(core(anOwner)-&gt;renderer()));
</del><ins>+        WebCore::IntRect rect =3D snappedIntRect(core(self)-&=
gt;computeRect(core(anOwner)-&gt;renderer()));
</ins><span class=3D"cx">         WKQuad quad;
</span><span class=3D"cx">         quad.p1 =3D CGPointMake(rect.x(), rect=
.y());
</span><span class=3D"cx">         quad.p2 =3D CGPointMake(rect.maxX(), r=
ect.y());
</span></span></pre></div>
<a id=3D"trunkSourceWebCorecssCSSComputedStyleDeclarationcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputed=
StyleDeclaration.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclara=
tion.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2014-08-28 0=
4:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -842,7 +842,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     FloatRect pixelSnappedRect;
</span><span class=3D"cx">     if (renderer-&gt;isBox())
</span><del>-        pixelSnappedRect =3D pixelSnappedForPainting(toRende=
rBox(renderer)-&gt;borderBoxRect(), renderer-&gt;document().deviceScaleFa=
ctor());
</del><ins>+        pixelSnappedRect =3D snapRectToDevicePixels(toRenderB=
ox(renderer)-&gt;borderBoxRect(), renderer-&gt;document().deviceScaleFact=
or());
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     TransformationMatrix transform;
</span><span class=3D"cx">     style-&gt;applyTransform(transform, pixelS=
nappedRect, RenderStyle::ExcludeTransformOrigin);
</span></span></pre></div>
<a id=3D"trunkSourceWebCoredomNodeh"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.h (173=
046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/dom/Node.h	2014-08-28 03:45=
:35 UTC (rev 173046)
+++ trunk/Source/WebCore/dom/Node.h	2014-08-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -378,9 +378,9 @@
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><span class=3D"cx">     virtual LayoutRect boundingBox() const;
</span><del>-    IntRect pixelSnappedBoundingBox() const { return pixelSn=
appedIntRect(boundingBox()); }
</del><ins>+    IntRect pixelSnappedBoundingBox() const { return snappedI=
ntRect(boundingBox()); }
</ins><span class=3D"cx">     WEBCORE_EXPORT LayoutRect renderRect(bool* =
isReplaced);
</span><del>-    IntRect pixelSnappedRenderRect(bool* isReplaced) { retur=
n pixelSnappedIntRect(renderRect(isReplaced)); }
</del><ins>+    IntRect pixelSnappedRenderRect(bool* isReplaced) { return=
 snappedIntRect(renderRect(isReplaced)); }
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     WEBCORE_EXPORT unsigned nodeIndex() const;
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreeditingRenderedPositioncpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/editing/Rendere=
dPosition.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/editing/RenderedPosition.cp=
p	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/editing/RenderedPosition.cpp	2014-08-28 04:24:31=
 UTC (rev 173047)
</span><span class=3D"lines">@@ -227,7 +227,7 @@
</span><span class=3D"cx">     if (isNull())
</span><span class=3D"cx">         return IntRect();
</span><span class=3D"cx">=20
</span><del>-    IntRect localRect =3D pixelSnappedIntRect(m_renderer-&gt=
;localCaretRect(m_inlineBox, m_offset, extraWidthToEndOfLine));
</del><ins>+    IntRect localRect =3D snappedIntRect(m_renderer-&gt;local=
CaretRect(m_inlineBox, m_offset, extraWidthToEndOfLine));
</ins><span class=3D"cx">     return localRect =3D=3D IntRect() ? IntRect=
() : m_renderer-&gt;localToAbsoluteQuad(FloatRect(localRect)).enclosingBo=
undingBox();
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreeditingmacFrameSelectionMacmm"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/editing/mac/Fra=
meSelectionMac.mm (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/editing/mac/FrameSelectionM=
ac.mm	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/editing/mac/FrameSelectionMac.mm	2014-08-28 04:2=
4:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -69,7 +69,7 @@
</span><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     IntRect selectionRect =3D absoluteCaretBou=
nds();
</span><del>-    IntRect viewRect =3D pixelSnappedIntRect(renderView-&gt;=
viewRect());
</del><ins>+    IntRect viewRect =3D snappedIntRect(renderView-&gt;viewRe=
ct());
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     selectionRect =3D frameView-&gt;contentsTo=
Screen(selectionRect);
</span><span class=3D"cx">     viewRect =3D frameView-&gt;contentsToScree=
n(viewRect);
</span></span></pre></div>
<a id=3D"trunkSourceWebCorehtmlHTMLCanvasElementcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLCanvas=
Element.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/html/HTMLCanvasElement.cpp	=
2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/html/HTMLCanvasElement.cpp	2014-08-28 04:24:31 U=
TC (rev 173047)
</span><span class=3D"lines">@@ -397,9 +397,9 @@
</span><span class=3D"cx"> #if ENABLE(CSS_IMAGE_ORIENTATION)
</span><span class=3D"cx">                 orientationDescription.setImag=
eOrientationEnum(renderer()-&gt;style().imageOrientation());
</span><span class=3D"cx"> #endif=20
</span><del>-                context-&gt;drawImage(m_presentedImage.get()=
, ColorSpaceDeviceRGB, pixelSnappedIntRect(r), ImagePaintingOptions(orien=
tationDescription, useLowQualityScale));
</del><ins>+                context-&gt;drawImage(m_presentedImage.get(),=
 ColorSpaceDeviceRGB, snappedIntRect(r), ImagePaintingOptions(orientation=
Description, useLowQualityScale));
</ins><span class=3D"cx">             } else
</span><del>-                context-&gt;drawImageBuffer(imageBuffer, Col=
orSpaceDeviceRGB, pixelSnappedIntRect(r), useLowQualityScale);
</del><ins>+                context-&gt;drawImageBuffer(imageBuffer, Colo=
rSpaceDeviceRGB, snappedIntRect(r), useLowQualityScale);
</ins><span class=3D"cx">         }
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreinspectorInspectorOverlaycpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/inspector/Inspe=
ctorOverlay.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/inspector/InspectorOverlay.=
cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/inspector/InspectorOverlay.cpp	2014-08-28 04:24:=
31 UTC (rev 173047)
</span><span class=3D"lines">@@ -704,7 +704,7 @@
</span><span class=3D"cx">     RenderElement* renderer =3D element-&gt;re=
nderer();
</span><span class=3D"cx">     Frame* containingFrame =3D node-&gt;docume=
nt().frame();
</span><span class=3D"cx">     FrameView* containingView =3D containingFr=
ame-&gt;view();
</span><del>-    IntRect boundingBox =3D pixelSnappedIntRect(containingVi=
ew-&gt;contentsToRootView(renderer-&gt;absoluteBoundingBoxRect()));
</del><ins>+    IntRect boundingBox =3D snappedIntRect(containingView-&gt=
;contentsToRootView(renderer-&gt;absoluteBoundingBoxRect()));
</ins><span class=3D"cx">     RenderBoxModelObject* modelObject =3D rende=
rer-&gt;isBoxModelObject() ? toRenderBoxModelObject(renderer) : nullptr;
</span><span class=3D"cx">     elementInfo-&gt;setString(&quot;nodeWidth&=
quot;, String::number(modelObject ? adjustForAbsoluteZoom(modelObject-&gt=
;pixelSnappedOffsetWidth(), *modelObject) : boundingBox.width()));
</span><span class=3D"cx">     elementInfo-&gt;setString(&quot;nodeHeight=
&quot;, String::number(modelObject ? adjustForAbsoluteZoom(modelObject-&g=
t;pixelSnappedOffsetHeight(), *modelObject) : boundingBox.height()));
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreinspectorInspectorPageAgentcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/inspector/Inspe=
ctorPageAgent.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/inspector/InspectorPageAgen=
t.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.cpp	2014-08-28 04:2=
4:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -892,7 +892,7 @@
</span><span class=3D"cx">    =20
</span><span class=3D"cx">     LayoutRect rootRect =3D absoluteRect;
</span><span class=3D"cx">     if (!view-&gt;frame().isMainFrame()) {
</span><del>-        IntRect rootViewRect =3D view-&gt;contentsToRootView=
(pixelSnappedIntRect(absoluteRect));
</del><ins>+        IntRect rootViewRect =3D view-&gt;contentsToRootView(=
snappedIntRect(absoluteRect));
</ins><span class=3D"cx">         rootRect =3D view-&gt;frame().mainFrame=
().view()-&gt;rootViewToContents(rootViewRect);
</span><span class=3D"cx">     }
</span><span class=3D"cx">    =20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorepageFrameSnapshottingcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/page/FrameSnaps=
hotting.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/page/FrameSnapshotting.cpp	=
2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/page/FrameSnapshotting.cpp	2014-08-28 04:24:31 U=
TC (rev 173047)
</span><span class=3D"lines">@@ -120,7 +120,7 @@
</span><span class=3D"cx">     frame.view()-&gt;setNodeToDraw(&amp;node);
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect topLevelRect;
</span><del>-    return snapshotFrameRect(frame, pixelSnappedIntRect(node=
.renderer()-&gt;paintingRootRect(topLevelRect)));
</del><ins>+    return snapshotFrameRect(frame, snappedIntRect(node.rende=
rer()-&gt;paintingRootRect(topLevelRect)));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> } // namespace WebCore
</span></span></pre></div>
<a id=3D"trunkSourceWebCorepageFrameViewcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/page/FrameView.=
cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/page/FrameView.cpp	2014-08-=
28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/page/FrameView.cpp	2014-08-28 04:24:31 UTC (rev =
173047)
</span><span class=3D"lines">@@ -1791,7 +1791,7 @@
</span><span class=3D"cx">             return false;
</span><span class=3D"cx">         }
</span><span class=3D"cx"> #endif
</span><del>-        IntRect updateRect =3D pixelSnappedIntRect(layer-&gt=
;repaintRectIncludingNonCompositingDescendants());
</del><ins>+        IntRect updateRect =3D snappedIntRect(layer-&gt;repai=
ntRectIncludingNonCompositingDescendants());
</ins><span class=3D"cx">         updateRect =3D contentsToRootView(updat=
eRect);
</span><span class=3D"cx">         if (!isCompositedContentLayer &amp;&am=
p; clipsRepaints())
</span><span class=3D"cx">             updateRect.intersect(rectToScroll)=
;
</span><span class=3D"lines">@@ -2723,11 +2723,11 @@
</span><span class=3D"cx">    =20
</span><span class=3D"cx">     LayoutRect extendedRect =3D renderView-&gt=
;unextendedBackgroundRect(renderView);
</span><span class=3D"cx">     if (!tiledBacking-&gt;hasMargins())
</span><del>-        return pixelSnappedIntRect(extendedRect);
</del><ins>+        return snappedIntRect(extendedRect);
</ins><span class=3D"cx">    =20
</span><span class=3D"cx">     extendedRect.moveBy(LayoutPoint(-tiledBack=
ing-&gt;leftMarginWidth(), -tiledBacking-&gt;topMarginHeight()));
</span><span class=3D"cx">     extendedRect.expand(LayoutSize(tiledBackin=
g-&gt;leftMarginWidth() + tiledBacking-&gt;rightMarginWidth(), tiledBacki=
ng-&gt;topMarginHeight() + tiledBacking-&gt;bottomMarginHeight()));
</span><del>-    return pixelSnappedIntRect(extendedRect);
</del><ins>+    return snappedIntRect(extendedRect);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> bool FrameView::shouldUpdateWhileOffscreen() c=
onst
</span><span class=3D"lines">@@ -3180,9 +3180,9 @@
</span><span class=3D"cx">     // Apply the clip from the layer.
</span><span class=3D"cx">     IntRect clipRect;
</span><span class=3D"cx">     if (clipToLayerContents)
</span><del>-        clipRect =3D pixelSnappedIntRect(enclosingLayer-&gt;=
childrenClipRect());
</del><ins>+        clipRect =3D snappedIntRect(enclosingLayer-&gt;childr=
enClipRect());
</ins><span class=3D"cx">     else
</span><del>-        clipRect =3D pixelSnappedIntRect(enclosingLayer-&gt;=
selfClipRect());
</del><ins>+        clipRect =3D snappedIntRect(enclosingLayer-&gt;selfCl=
ipRect());
</ins><span class=3D"cx">     clipRect =3D contentsToWindow(clipRect);=20
</span><span class=3D"cx">     return intersection(clipRect, windowClipRe=
ct());
</span><span class=3D"cx"> }
</span><span class=3D"lines">@@ -3997,7 +3997,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx"> IntRect FrameView::convertFromRendererToContai=
ningView(const RenderElement* renderer, const IntRect&amp; rendererRect) =
const
</span><span class=3D"cx"> {
</span><del>-    IntRect rect =3D pixelSnappedIntRect(enclosingLayoutRect=
(renderer-&gt;localToAbsoluteQuad(FloatRect(rendererRect)).boundingBox())=
);
</del><ins>+    IntRect rect =3D snappedIntRect(enclosingLayoutRect(rende=
rer-&gt;localToAbsoluteQuad(FloatRect(rendererRect)).boundingBox()));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     // Convert from page (&quot;absolute&quot;=
) to FrameView coordinates.
</span><span class=3D"cx">     if (!delegatesScrolling())
</span></span></pre></div>
<a id=3D"trunkSourceWebCorepagePagecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/page/Page.cpp (=
173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/page/Page.cpp	2014-08-28 03=
:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/page/Page.cpp	2014-08-28 04:24:31 UTC (rev 17304=
7)
</span><span class=3D"lines">@@ -1436,10 +1436,10 @@
</span><span class=3D"cx">     LayoutRect relevantRect =3D relevantViewRe=
ct(&amp;object-&gt;view());
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // The objects are only relevant if they a=
re being painted within the viewRect().
</span><del>-    if (!objectPaintRect.intersects(pixelSnappedIntRect(rele=
vantRect)))
</del><ins>+    if (!objectPaintRect.intersects(snappedIntRect(relevantRe=
ct)))
</ins><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><del>-    IntRect snappedPaintRect =3D pixelSnappedIntRect(objectP=
aintRect);
</del><ins>+    IntRect snappedPaintRect =3D snappedIntRect(objectPaintRe=
ct);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     // If this object was previously counted a=
s an unpainted object, remove it from that HashSet
</span><span class=3D"cx">     // and corresponding Region. FIXME: This d=
oesn't do the right thing if the objects overlap.
</span><span class=3D"lines">@@ -1457,11 +1457,11 @@
</span><span class=3D"cx">     // If the rect straddles both Regions, spl=
it it appropriately.
</span><span class=3D"cx">     if (topRelevantRect.intersects(snappedPain=
tRect) &amp;&amp; bottomRelevantRect.intersects(snappedPaintRect)) {
</span><span class=3D"cx">         IntRect topIntersection =3D snappedPai=
ntRect;
</span><del>-        topIntersection.intersect(pixelSnappedIntRect(topRel=
evantRect));
</del><ins>+        topIntersection.intersect(snappedIntRect(topRelevantR=
ect));
</ins><span class=3D"cx">         m_topRelevantPaintedRegion.unite(topInt=
ersection);
</span><span class=3D"cx">=20
</span><span class=3D"cx">         IntRect bottomIntersection =3D snapped=
PaintRect;
</span><del>-        bottomIntersection.intersect(pixelSnappedIntRect(bot=
tomRelevantRect));
</del><ins>+        bottomIntersection.intersect(snappedIntRect(bottomRel=
evantRect));
</ins><span class=3D"cx">         m_bottomRelevantPaintedRegion.unite(bot=
tomIntersection);
</span><span class=3D"cx">     } else if (topRelevantRect.intersects(snap=
pedPaintRect))
</span><span class=3D"cx">         m_topRelevantPaintedRegion.unite(snapp=
edPaintRect);
</span><span class=3D"lines">@@ -1491,11 +1491,11 @@
</span><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // The objects are only relevant if they a=
re being painted within the relevantViewRect().
</span><del>-    if (!objectPaintRect.intersects(pixelSnappedIntRect(rele=
vantViewRect(&amp;object-&gt;view()))))
</del><ins>+    if (!objectPaintRect.intersects(snappedIntRect(relevantVi=
ewRect(&amp;object-&gt;view()))))
</ins><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     m_relevantUnpaintedRenderObjects.add(objec=
t);
</span><del>-    m_relevantUnpaintedRegion.unite(pixelSnappedIntRect(obje=
ctPaintRect));
</del><ins>+    m_relevantUnpaintedRegion.unite(snappedIntRect(objectPain=
tRect));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void Page::suspendActiveDOMObjectsAndAnimation=
s()
</span></span></pre></div>
<a id=3D"trunkSourceWebCorepageiosFrameIOSmm"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/page/ios/FrameI=
OS.mm (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/page/ios/FrameIOS.mm	2014-0=
8-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/page/ios/FrameIOS.mm	2014-08-28 04:24:31 UTC (re=
v 173047)
</span><span class=3D"lines">@@ -352,7 +352,7 @@
</span><span class=3D"cx">             if (nodeBounds) {
</span><span class=3D"cx">                 // This is a check to see whet=
her this node is an area element.  The only way this can happen is if thi=
s is the first check.
</span><span class=3D"cx">                 if (node =3D=3D hitTestResult.=
innerNode() &amp;&amp; node !=3D hitTestResult.innerNonSharedNode() &amp;=
&amp; node-&gt;hasTagName(HTMLNames::areaTag))
</span><del>-                    *nodeBounds =3D pixelSnappedIntRect(toHT=
MLAreaElement(node)-&gt;computeRect(hitTestResult.innerNonSharedNode()-&g=
t;renderer()));
</del><ins>+                    *nodeBounds =3D snappedIntRect(toHTMLArea=
Element(node)-&gt;computeRect(hitTestResult.innerNonSharedNode()-&gt;rend=
erer()));
</ins><span class=3D"cx">                 else if (node &amp;&amp; node-&=
gt;renderer())
</span><span class=3D"cx">                     *nodeBounds =3D node-&gt;r=
enderer()-&gt;absoluteBoundingBoxRect(true);
</span><span class=3D"cx">             }
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreplatformDragImagecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/platform/DragIm=
age.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/platform/DragImage.cpp	2014=
-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/platform/DragImage.cpp	2014-08-28 04:24:31 UTC (=
rev 173047)
</span><span class=3D"lines">@@ -190,12 +190,12 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // Calculate image and element metrics for=
 the client, then create drag image.
</span><span class=3D"cx">     LayoutRect topLevelRect;
</span><del>-    IntRect paintingRect =3D pixelSnappedIntRect(renderer-&g=
t;paintingRootRect(topLevelRect));
</del><ins>+    IntRect paintingRect =3D snappedIntRect(renderer-&gt;pain=
tingRootRect(topLevelRect));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     if (paintingRect.isEmpty())
</span><span class=3D"cx">         return nullptr;
</span><span class=3D"cx">=20
</span><del>-    elementRect =3D pixelSnappedIntRect(topLevelRect);
</del><ins>+    elementRect =3D snappedIntRect(topLevelRect);
</ins><span class=3D"cx">     imageRect =3D paintingRect;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     return createDragImageFromSnapshot(snapsho=
tNode(frame, node), &amp;node);
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreplatformgraphicsLayoutRectcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/platform/graphi=
cs/LayoutRect.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/platform/graphics/LayoutRec=
t.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/platform/graphics/LayoutRect.cpp	2014-08-28 04:2=
4:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -144,7 +144,7 @@
</span><span class=3D"cx">     return LayoutRect(location, maxPoint - loc=
ation);
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><del>-FloatRect enclosingRectForPainting(const LayoutRect&amp; rec=
t, float pixelSnappingFactor)
</del><ins>+FloatRect encloseRectToDevicePixels(const LayoutRect&amp; rec=
t, float pixelSnappingFactor)
</ins><span class=3D"cx"> {
</span><span class=3D"cx">     FloatPoint location =3D floorPointToDevice=
Pixels(rect.minXMinYCorner(), pixelSnappingFactor);
</span><span class=3D"cx">     FloatPoint maxPoint =3D ceilPointToDeviceP=
ixels(rect.maxXMaxYCorner(), pixelSnappingFactor);
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreplatformgraphicsLayoutRecth"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/platform/graphi=
cs/LayoutRect.h (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/platform/graphics/LayoutRec=
t.h	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/platform/graphics/LayoutRect.h	2014-08-28 04:24:=
31 UTC (rev 173047)
</span><span class=3D"lines">@@ -201,44 +201,44 @@
</span><span class=3D"cx">     return a.location() !=3D b.location() || a=
.size() !=3D b.size();
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><del>-inline IntRect pixelSnappedIntRect(const LayoutRect&amp; rec=
t)
</del><ins>+WEBCORE_EXPORT IntRect enclosingIntRect(const LayoutRect&amp;=
);
+WEBCORE_EXPORT LayoutRect enclosingLayoutRect(const FloatRect&amp;);
+
+inline IntRect snappedIntRect(const LayoutRect&amp; rect)
</ins><span class=3D"cx"> {
</span><span class=3D"cx">     return IntRect(roundedIntPoint(rect.locati=
on()), IntSize(snapSizeToPixel(rect.width(), rect.x()), snapSizeToPixel(r=
ect.height(), rect.y())));
</span><del>-
</del><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><del>-WEBCORE_EXPORT IntRect enclosingIntRect(const LayoutRect&amp=
;);
-WEBCORE_EXPORT LayoutRect enclosingLayoutRect(const FloatRect&amp;);
-FloatRect enclosingRectForPainting(const LayoutRect&amp;, float pixelSna=
ppingFactor);
-
-inline IntRect pixelSnappedIntRect(LayoutUnit left, LayoutUnit top, Layo=
utUnit width, LayoutUnit height)
</del><ins>+inline IntRect snappedIntRect(LayoutUnit left, LayoutUnit top=
, LayoutUnit width, LayoutUnit height)
</ins><span class=3D"cx"> {
</span><span class=3D"cx">     return IntRect(left.round(), top.round(), =
snapSizeToPixel(width, left), snapSizeToPixel(height, top));
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><del>-inline IntRect pixelSnappedIntRectFromEdges(LayoutUnit left,=
 LayoutUnit top, LayoutUnit right, LayoutUnit bottom)
</del><ins>+inline IntRect snappedIntRectFromEdges(LayoutUnit left, Layou=
tUnit top, LayoutUnit right, LayoutUnit bottom)
</ins><span class=3D"cx"> {
</span><span class=3D"cx">     return IntRect(left.round(), top.round(), =
snapSizeToPixel(right - left, left), snapSizeToPixel(bottom - top, top));
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><del>-inline IntRect pixelSnappedIntRect(LayoutPoint location, Lay=
outSize size)
</del><ins>+inline IntRect snappedIntRect(LayoutPoint location, LayoutSiz=
e size)
</ins><span class=3D"cx"> {
</span><span class=3D"cx">     return IntRect(roundedIntPoint(location), =
pixelSnappedIntSize(size, location));
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><del>-inline FloatRect pixelSnappedForPainting(const LayoutRect&am=
p; rect, float pixelSnappingFactor)
</del><ins>+FloatRect encloseRectToDevicePixels(const LayoutRect&amp;, fl=
oat pixelSnappingFactor);
+
+inline FloatRect snapRectToDevicePixels(const LayoutRect&amp; rect, floa=
t pixelSnappingFactor)
</ins><span class=3D"cx"> {
</span><span class=3D"cx">     return FloatRect(roundToDevicePixel(rect.x=
(), pixelSnappingFactor), roundToDevicePixel(rect.y(), pixelSnappingFacto=
r),
</span><span class=3D"cx">         snapSizeToDevicePixel(rect.width(), re=
ct.x(), pixelSnappingFactor), snapSizeToDevicePixel(rect.height(), rect.y=
(), pixelSnappingFactor));
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><del>-inline FloatRect pixelSnappedForPainting(LayoutUnit x, Layou=
tUnit y, LayoutUnit width, LayoutUnit height, float pixelSnappingFactor)
</del><ins>+inline FloatRect snapRectToDevicePixels(LayoutUnit x, LayoutU=
nit y, LayoutUnit width, LayoutUnit height, float pixelSnappingFactor)
</ins><span class=3D"cx"> {
</span><del>-    return pixelSnappedForPainting(LayoutRect(x, y, width, h=
eight), pixelSnappingFactor);
</del><ins>+    return snapRectToDevicePixels(LayoutRect(x, y, width, hei=
ght), pixelSnappingFactor);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> // FIXME: This needs to take vertical centerin=
g into account too.
</span><del>-inline FloatRect directionalPixelSnappedForPainting(const La=
youtRect&amp; rect, float deviceScaleFactor, bool ltr)
</del><ins>+inline FloatRect snapRectToDevicePixelsWithWritingDirection(c=
onst LayoutRect&amp; rect, float deviceScaleFactor, bool ltr)
</ins><span class=3D"cx"> {
</span><span class=3D"cx">     if (!ltr) {
</span><span class=3D"cx">         FloatPoint snappedTopRight =3D roundPo=
intToDevicePixels(rect.maxXMinYCorner(), deviceScaleFactor, ltr);
</span><span class=3D"lines">@@ -246,7 +246,7 @@
</span><span class=3D"cx">         float snappedHeight =3D snapSizeToDevi=
cePixel(rect.height(), rect.y(), deviceScaleFactor);
</span><span class=3D"cx">         return FloatRect(snappedTopRight.x() -=
 snappedWidth, snappedTopRight.y(), snappedWidth, snappedHeight);
</span><span class=3D"cx">     }
</span><del>-    return pixelSnappedForPainting(rect, deviceScaleFactor);
</del><ins>+    return snapRectToDevicePixels(rect, deviceScaleFactor);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> } // namespace WebCore
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreplatformgraphicsRoundedRectcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/platform/graphi=
cs/RoundedRect.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/platform/graphics/RoundedRe=
ct.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/platform/graphics/RoundedRect.cpp	2014-08-28 04:=
24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -242,7 +242,7 @@
</span><span class=3D"cx">     if (originalRect.isEmpty())
</span><span class=3D"cx">         return FloatRoundedRect(originalRect, =
radii());
</span><span class=3D"cx">=20
</span><del>-    FloatRect pixelSnappedRect =3D pixelSnappedForPainting(o=
riginalRect, deviceScaleFactor);
</del><ins>+    FloatRect pixelSnappedRect =3D snapRectToDevicePixels(ori=
ginalRect, deviceScaleFactor);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     if (!isRenderable())
</span><span class=3D"cx">         return FloatRoundedRect(pixelSnappedRe=
ct, radii());
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/platform/graphi=
cs/ca/GraphicsLayerCA.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/platform/graphics/ca/Graphi=
csLayerCA.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp	2014-08=
-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -3333,7 +3333,7 @@
</span><span class=3D"cx">     // Scale by the page scale factor to compu=
te the screen-relative bounds.
</span><span class=3D"cx">     scaledBounds.scale(contentsScale);
</span><span class=3D"cx">     // Round to integer boundaries.
</span><del>-    FloatRect alignedBounds =3D enclosingRectForPainting(Lay=
outRect(scaledBounds), deviceScaleFactor());
</del><ins>+    FloatRect alignedBounds =3D encloseRectToDevicePixels(Lay=
outRect(scaledBounds), deviceScaleFactor());
</ins><span class=3D"cx">    =20
</span><span class=3D"cx">     // Convert back to layer coordinates.
</span><span class=3D"cx">     alignedBounds.scale(1 / contentsScale);
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreplatformtextTextStreamcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/platform/text/T=
extStream.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/platform/text/TextStream.cp=
p	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/platform/text/TextStream.cpp	2014-08-28 04:24:31=
 UTC (rev 173047)
</span><span class=3D"lines">@@ -165,7 +165,7 @@
</span><span class=3D"cx"> TextStream&amp; TextStream::operator&lt;&lt;(c=
onst LayoutRect&amp; r)
</span><span class=3D"cx"> {
</span><span class=3D"cx">     // FIXME: These should be printed as float=
s. Keeping them ints for consistency with previous test expectations.
</span><del>-    return *this &lt;&lt; pixelSnappedIntRect(r);
</del><ins>+    return *this &lt;&lt; snappedIntRect(r);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> String TextStream::release()
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingEllipsisBoxcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Ellip=
sisBox.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/EllipsisBox.cpp	2=
014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/EllipsisBox.cpp	2014-08-28 04:24:31 UT=
C (rev 173047)
</span><span class=3D"lines">@@ -137,7 +137,7 @@
</span><span class=3D"cx">     LayoutRect selectionRect =3D LayoutRect(x(=
) + paintOffset.x(), y() + paintOffset.y() + rootBox.selectionTop(), 0, r=
ootBox.selectionHeight());
</span><span class=3D"cx">     TextRun run =3D RenderBlock::constructText=
Run(&amp;blockFlow(), font, m_str, style, TextRun::AllowTrailingExpansion=
);
</span><span class=3D"cx">     font.adjustSelectionRectForText(run, selec=
tionRect, 0, -1);
</span><del>-    context-&gt;fillRect(directionalPixelSnappedForPainting(=
selectionRect, renderer().document().deviceScaleFactor(), run.ltr()), c, =
style.colorSpace());
</del><ins>+    context-&gt;fillRect(snapRectToDevicePixelsWithWritingDir=
ection(selectionRect, renderer().document().deviceScaleFactor(), run.ltr(=
)), c, style.colorSpace());
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> bool EllipsisBox::nodeAtPoint(const HitTestReq=
uest&amp; request, HitTestResult&amp; result, const HitTestLocation&amp; =
locationInContainer, const LayoutPoint&amp; accumulatedOffset, LayoutUnit=
 lineTop, LayoutUnit lineBottom)
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingFilterEffectRenderercpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Filte=
rEffectRenderer.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/FilterEffectRende=
rer.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/FilterEffectRenderer.cpp	2014-08-28 04=
:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -438,7 +438,7 @@
</span><span class=3D"cx">     destRect.move(m_paintOffset.x(), m_paintOf=
fset.y());
</span><span class=3D"cx">=20
</span><span class=3D"cx">     destinationContext-&gt;drawImageBuffer(fil=
ter-&gt;output(), m_renderLayer-&gt;renderer().style().colorSpace(),
</span><del>-        pixelSnappedForPainting(destRect, m_renderLayer-&gt;=
renderer().document().deviceScaleFactor()));
</del><ins>+        snapRectToDevicePixels(destRect, m_renderLayer-&gt;re=
nderer().document().deviceScaleFactor()));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     filter-&gt;clearIntermediateResults();
</span><span class=3D"cx"> }
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingInlineFlowBoxcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Inlin=
eFlowBox.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/InlineFlowBox.cpp=
	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/InlineFlowBox.cpp	2014-08-28 04:24:31 =
UTC (rev 173047)
</span><span class=3D"lines">@@ -1095,7 +1095,7 @@
</span><span class=3D"cx">     flipForWritingMode(overflowRect);
</span><span class=3D"cx">     overflowRect.moveBy(paintOffset);
</span><span class=3D"cx">    =20
</span><del>-    if (!paintInfo.rect.intersects(pixelSnappedIntRect(overf=
lowRect)))
</del><ins>+    if (!paintInfo.rect.intersects(snappedIntRect(overflowRec=
t)))
</ins><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     if (paintInfo.phase !=3D PaintPhaseChildOu=
tlines) {
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingInlineTextBoxcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Inlin=
eTextBox.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/InlineTextBox.cpp=
	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/InlineTextBox.cpp	2014-08-28 04:24:31 =
UTC (rev 173047)
</span><span class=3D"lines">@@ -753,7 +753,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect selectionRect =3D LayoutRect(bo=
xOrigin.x(), boxOrigin.y() - deltaY, m_logicalWidth, selectionHeight);
</span><span class=3D"cx">     font.adjustSelectionRectForText(textRun, s=
electionRect, sPos, ePos);
</span><del>-    context-&gt;fillRect(directionalPixelSnappedForPainting(=
selectionRect, renderer().document().deviceScaleFactor(), textRun.ltr()),=
 c, style.colorSpace());
</del><ins>+    context-&gt;fillRect(snapRectToDevicePixelsWithWritingDir=
ection(selectionRect, renderer().document().deviceScaleFactor(), textRun.=
ltr()), c, style.colorSpace());
</ins><span class=3D"cx"> #else
</span><span class=3D"cx">     UNUSED_PARAM(context);
</span><span class=3D"cx">     UNUSED_PARAM(boxOrigin);
</span><span class=3D"lines">@@ -788,7 +788,7 @@
</span><span class=3D"cx">     LayoutRect selectionRect =3D LayoutRect(bo=
xOrigin.x(), boxOrigin.y() - deltaY, 0, selectionHeight());
</span><span class=3D"cx">     TextRun textRun =3D constructTextRun(style=
, font);
</span><span class=3D"cx">     font.adjustSelectionRectForText(textRun, s=
electionRect, sPos, ePos);
</span><del>-    context-&gt;fillRect(directionalPixelSnappedForPainting(=
selectionRect, renderer().document().deviceScaleFactor(), textRun.ltr()),=
 c, style.colorSpace());
</del><ins>+    context-&gt;fillRect(snapRectToDevicePixelsWithWritingDir=
ection(selectionRect, renderer().document().deviceScaleFactor(), textRun.=
ltr()), c, style.colorSpace());
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> static StrokeStyle textDecorationStyleToStroke=
Style(TextDecorationStyle decorationStyle)
</span><span class=3D"lines">@@ -1189,7 +1189,7 @@
</span><span class=3D"cx">         LayoutUnit deltaY =3D renderer().style=
().isFlippedLinesWritingMode() ? selectionBottom() - logicalBottom() : lo=
gicalTop() - selectionTop();
</span><span class=3D"cx">         LayoutRect selectionRect =3D LayoutRec=
t(boxOrigin.x(), boxOrigin.y() - deltaY, 0, selectionHeight);
</span><span class=3D"cx">         font.adjustSelectionRectForText(run, s=
electionRect, sPos, ePos);
</span><del>-        context-&gt;fillRect(directionalPixelSnappedForPaint=
ing(selectionRect, renderer().document().deviceScaleFactor(), run.ltr()),=
 color, style.colorSpace());
</del><ins>+        context-&gt;fillRect(snapRectToDevicePixelsWithWritin=
gDirection(selectionRect, renderer().document().deviceScaleFactor(), run.=
ltr()), color, style.colorSpace());
</ins><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -1390,7 +1390,7 @@
</span><span class=3D"cx">     LayoutRect selectionRect =3D LayoutRect(lo=
gicalLeft(), 0, 0, 0);
</span><span class=3D"cx">     TextRun run =3D constructTextRun(lineStyle=
, font);
</span><span class=3D"cx">     font.adjustSelectionRectForText(run, selec=
tionRect, from, to);
</span><del>-    return directionalPixelSnappedForPainting(selectionRect,=
 renderer().document().deviceScaleFactor(), run.ltr()).maxX();
</del><ins>+    return snapRectToDevicePixelsWithWritingDirection(selecti=
onRect, renderer().document().deviceScaleFactor(), run.ltr()).maxX();
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> TextRun InlineTextBox::constructTextRun(const =
RenderStyle&amp; style, const Font&amp; font, String* hyphenatedStringBuf=
fer) const
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderBlockcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rBlock.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderBlock.cpp	2=
014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderBlock.cpp	2014-08-28 04:24:31 UT=
C (rev 173047)
</span><span class=3D"lines">@@ -1174,7 +1174,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     FloatRect inflatedRect =3D borderBoxRect()=
;
</span><span class=3D"cx">     theme().adjustRepaintRect(*this, inflatedR=
ect);
</span><del>-    addVisualOverflow(pixelSnappedIntRect(LayoutRect(inflate=
dRect)));
</del><ins>+    addVisualOverflow(snappedIntRect(LayoutRect(inflatedRect)=
));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     if (RenderFlowThread* flowThread =3D flowT=
hreadContainingBlock())
</span><span class=3D"cx">         flowThread-&gt;addRegionsVisualOverflo=
wFromTheme(this);
</span><span class=3D"lines">@@ -1527,7 +1527,7 @@
</span><span class=3D"cx">     // z-index.  We paint after we painted the=
 background/border, so that the scrollbars will
</span><span class=3D"cx">     // sit above the background/border.
</span><span class=3D"cx">     if (hasOverflowClip() &amp;&amp; style().v=
isibility() =3D=3D VISIBLE &amp;&amp; (phase =3D=3D PaintPhaseBlockBackgr=
ound || phase =3D=3D PaintPhaseChildBlockBackground) &amp;&amp; paintInfo=
.shouldPaintWithinRoot(*this) &amp;&amp; !paintInfo.paintRootBackgroundOn=
ly())
</span><del>-        layer()-&gt;paintOverflowControls(paintInfo.context,=
 roundedIntPoint(adjustedPaintOffset), pixelSnappedIntRect(paintInfo.rect=
));
</del><ins>+        layer()-&gt;paintOverflowControls(paintInfo.context, =
roundedIntPoint(adjustedPaintOffset), snappedIntRect(paintInfo.rect));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderBlock::paintContents(PaintInfo&amp;=
 paintInfo, const LayoutPoint&amp; paintOffset)
</span><span class=3D"lines">@@ -2066,7 +2066,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect gapRect =3D rootBlock.logicalRe=
ctToPhysicalRect(rootBlockPhysicalPosition, LayoutRect(logicalLeft, logic=
alTop, logicalWidth, logicalHeight));
</span><span class=3D"cx">     if (paintInfo)
</span><del>-        paintInfo-&gt;context-&gt;fillRect(pixelSnappedForPa=
inting(gapRect, document().deviceScaleFactor()), selectionBackgroundColor=
(), style().colorSpace());
</del><ins>+        paintInfo-&gt;context-&gt;fillRect(snapRectToDevicePi=
xels(gapRect, document().deviceScaleFactor()), selectionBackgroundColor()=
, style().colorSpace());
</ins><span class=3D"cx">     return gapRect;
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -2083,7 +2083,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect gapRect =3D rootBlock.logicalRe=
ctToPhysicalRect(rootBlockPhysicalPosition, LayoutRect(rootBlockLogicalLe=
ft, rootBlockLogicalTop, rootBlockLogicalWidth, logicalHeight));
</span><span class=3D"cx">     if (paintInfo)
</span><del>-        paintInfo-&gt;context-&gt;fillRect(pixelSnappedForPa=
inting(gapRect, document().deviceScaleFactor()), selObj-&gt;selectionBack=
groundColor(), selObj-&gt;style().colorSpace());
</del><ins>+        paintInfo-&gt;context-&gt;fillRect(snapRectToDevicePi=
xels(gapRect, document().deviceScaleFactor()), selObj-&gt;selectionBackgr=
oundColor(), selObj-&gt;style().colorSpace());
</ins><span class=3D"cx">     return gapRect;
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -2100,7 +2100,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect gapRect =3D rootBlock.logicalRe=
ctToPhysicalRect(rootBlockPhysicalPosition, LayoutRect(rootBlockLogicalLe=
ft, rootBlockLogicalTop, rootBlockLogicalWidth, logicalHeight));
</span><span class=3D"cx">     if (paintInfo)
</span><del>-        paintInfo-&gt;context-&gt;fillRect(pixelSnappedForPa=
inting(gapRect, document().deviceScaleFactor()), selObj-&gt;selectionBack=
groundColor(), selObj-&gt;style().colorSpace());
</del><ins>+        paintInfo-&gt;context-&gt;fillRect(snapRectToDevicePi=
xels(gapRect, document().deviceScaleFactor()), selObj-&gt;selectionBackgr=
oundColor(), selObj-&gt;style().colorSpace());
</ins><span class=3D"cx">     return gapRect;
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -3733,12 +3733,12 @@
</span><span class=3D"cx">     if (isAnonymousBlockContinuation()) {
</span><span class=3D"cx">         // FIXME: This is wrong for block-flow=
s that are horizontal.
</span><span class=3D"cx">         // https://bugs.webkit.org/show_bug.cg=
i?id=3D46781
</span><del>-        rects.append(pixelSnappedIntRect(accumulatedOffset.x=
(), accumulatedOffset.y() - collapsedMarginBefore(),
</del><ins>+        rects.append(snappedIntRect(accumulatedOffset.x(), ac=
cumulatedOffset.y() - collapsedMarginBefore(),
</ins><span class=3D"cx">                                 width(), height=
() + collapsedMarginBefore() + collapsedMarginAfter()));
</span><span class=3D"cx">         continuation()-&gt;absoluteRects(rects=
, accumulatedOffset - toLayoutSize(location() +
</span><span class=3D"cx">                 inlineElementContinuation()-&g=
t;containingBlock()-&gt;location()));
</span><span class=3D"cx">     } else
</span><del>-        rects.append(pixelSnappedIntRect(accumulatedOffset, =
size()));
</del><ins>+        rects.append(snappedIntRect(accumulatedOffset, size()=
));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderBlock::absoluteQuads(Vector&lt;Floa=
tQuad&gt;&amp; quads, bool* wasFixed) const
</span><span class=3D"lines">@@ -3842,9 +3842,9 @@
</span><span class=3D"cx">         float bottomMargin =3D nextInlineHasLi=
neBox ? collapsedMarginAfter() : LayoutUnit();
</span><span class=3D"cx">         LayoutRect rect(additionalOffset.x(), =
additionalOffset.y() - topMargin, width(), height() + topMargin + bottomM=
argin);
</span><span class=3D"cx">         if (!rect.isEmpty())
</span><del>-            rects.append(pixelSnappedIntRect(rect));
</del><ins>+            rects.append(snappedIntRect(rect));
</ins><span class=3D"cx">     } else if (width() &amp;&amp; height())
</span><del>-        rects.append(pixelSnappedIntRect(additionalOffset, s=
ize()));
</del><ins>+        rects.append(snappedIntRect(additionalOffset, size())=
);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     if (!hasOverflowClip() &amp;&amp; !hasCont=
rolClip()) {
</span><span class=3D"cx">         if (childrenInline())
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderBlockFlowcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rBlockFlow.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderBlockFlow.c=
pp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderBlockFlow.cpp	2014-08-28 04:24:3=
1 UTC (rev 173047)
</span><span class=3D"lines">@@ -2165,7 +2165,7 @@
</span><span class=3D"cx">                 floatingObject-&gt;renderer().=
width(), floatingObject-&gt;renderer().height());
</span><span class=3D"cx">             rootBlock.flipForWritingMode(float=
Box);
</span><span class=3D"cx">             floatBox.move(rootBlockPhysicalPos=
ition.x(), rootBlockPhysicalPosition.y());
</span><del>-            paintInfo-&gt;context-&gt;clipOut(pixelSnappedIn=
tRect(floatBox));
</del><ins>+            paintInfo-&gt;context-&gt;clipOut(snappedIntRect(=
floatBox));
</ins><span class=3D"cx">         }
</span><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"lines">@@ -3336,7 +3336,7 @@
</span><span class=3D"cx">         LayoutUnit bottom =3D std::min&lt;Layo=
utUnit&gt;(curr-&gt;lineBottom(), curr-&gt;top() + curr-&gt;height());
</span><span class=3D"cx">         LayoutRect rect(additionalOffset.x() +=
 curr-&gt;x(), additionalOffset.y() + top, curr-&gt;width(), bottom - top=
);
</span><span class=3D"cx">         if (!rect.isEmpty())
</span><del>-            rects.append(pixelSnappedIntRect(rect));
</del><ins>+            rects.append(snappedIntRect(rect));
</ins><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderBoxcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rBox.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderBox.cpp	201=
4-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderBox.cpp	2014-08-28 04:24:31 UTC =
(rev 173047)
</span><span class=3D"lines">@@ -584,7 +584,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderBox::absoluteRects(Vector&lt;IntRec=
t&gt;&amp; rects, const LayoutPoint&amp; accumulatedOffset) const
</span><span class=3D"cx"> {
</span><del>-    rects.append(pixelSnappedIntRect(accumulatedOffset, size=
()));
</del><ins>+    rects.append(snappedIntRect(accumulatedOffset, size()));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderBox::absoluteQuads(Vector&lt;FloatQ=
uad&gt;&amp; quads, bool* wasFixed) const
</span><span class=3D"lines">@@ -650,7 +650,7 @@
</span><span class=3D"cx"> IntRect RenderBox::absoluteContentBox() const
</span><span class=3D"cx"> {
</span><span class=3D"cx">     // This is wrong with transforms and flipp=
ed writing modes.
</span><del>-    IntRect rect =3D pixelSnappedIntRect(contentBoxRect());
</del><ins>+    IntRect rect =3D snappedIntRect(contentBoxRect());
</ins><span class=3D"cx">     FloatPoint absPos =3D localToAbsolute();
</span><span class=3D"cx">     rect.move(absPos.x(), absPos.y());
</span><span class=3D"cx">     return rect;
</span><span class=3D"lines">@@ -681,13 +681,13 @@
</span><span class=3D"cx">     // repaint containers. https://bugs.webkit=
.org/show_bug.cgi?id=3D23308
</span><span class=3D"cx">     box.move(view().layoutDelta());
</span><span class=3D"cx">=20
</span><del>-    return LayoutRect(pixelSnappedForPainting(box, document(=
).deviceScaleFactor()));
</del><ins>+    return LayoutRect(snapRectToDevicePixels(box, document().=
deviceScaleFactor()));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderBox::addFocusRingRects(Vector&lt;In=
tRect&gt;&amp; rects, const LayoutPoint&amp; additionalOffset, const Rend=
erLayerModelObject*)
</span><span class=3D"cx"> {
</span><span class=3D"cx">     if (!size().isEmpty())
</span><del>-        rects.append(pixelSnappedIntRect(additionalOffset, s=
ize()));
</del><ins>+        rects.append(snappedIntRect(additionalOffset, size())=
);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> int RenderBox::reflectionOffset() const
</span><span class=3D"lines">@@ -1294,7 +1294,7 @@
</span><span class=3D"cx"> bool RenderBox::getBackgroundPaintedExtent(Lay=
outRect&amp; paintedExtent) const
</span><span class=3D"cx"> {
</span><span class=3D"cx">     ASSERT(hasBackground());
</span><del>-    LayoutRect backgroundRect =3D pixelSnappedIntRect(border=
BoxRect());
</del><ins>+    LayoutRect backgroundRect =3D snappedIntRect(borderBoxRec=
t());
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     Color backgroundColor =3D style().visitedD=
ependentColor(CSSPropertyBackgroundColor);
</span><span class=3D"cx">     if (backgroundColor.isValid() &amp;&amp; b=
ackgroundColor.alpha()) {
</span><span class=3D"lines">@@ -1692,7 +1692,7 @@
</span><span class=3D"cx">         paintInfo.phase =3D PaintPhaseChildBlo=
ckBackgrounds;
</span><span class=3D"cx">     }
</span><span class=3D"cx">     float deviceScaleFactor =3D document().dev=
iceScaleFactor();
</span><del>-    FloatRect clipRect =3D pixelSnappedForPainting((isContro=
lClip ? controlClipRect(accumulatedOffset) : overflowClipRect(accumulated=
Offset, currentRenderNamedFlowFragment(), IgnoreOverlayScrollbarSize, pai=
ntInfo.phase)), deviceScaleFactor);
</del><ins>+    FloatRect clipRect =3D snapRectToDevicePixels((isControlC=
lip ? controlClipRect(accumulatedOffset) : overflowClipRect(accumulatedOf=
fset, currentRenderNamedFlowFragment(), IgnoreOverlayScrollbarSize, paint=
Info.phase)), deviceScaleFactor);
</ins><span class=3D"cx">     paintInfo.context-&gt;save();
</span><span class=3D"cx">     if (style().hasBorderRadius())
</span><span class=3D"cx">         paintInfo.context-&gt;clipRoundedRect(=
style().getRoundedInnerBorderFor(LayoutRect(accumulatedOffset, size())).p=
ixelSnappedRoundedRectForPainting(deviceScaleFactor));
</span><span class=3D"lines">@@ -2121,7 +2121,7 @@
</span><span class=3D"cx">         LayoutState* layoutState =3D view().la=
youtState();
</span><span class=3D"cx">=20
</span><span class=3D"cx">         if (layer() &amp;&amp; layer()-&gt;tra=
nsform())
</span><del>-            rect =3D LayoutRect(enclosingRectForPainting(lay=
er()-&gt;transform()-&gt;mapRect(rect), document().deviceScaleFactor()));
</del><ins>+            rect =3D LayoutRect(encloseRectToDevicePixels(lay=
er()-&gt;transform()-&gt;mapRect(rect), document().deviceScaleFactor()));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">         // We can't trust the bits on RenderOb=
ject, because this might be called while re-resolving style.
</span><span class=3D"cx">         if (styleToUse.hasInFlowPosition() &am=
p;&amp; layer())
</span><span class=3D"lines">@@ -2174,7 +2174,7 @@
</span><span class=3D"cx">     // in the parent's coordinate space that e=
ncloses us.
</span><span class=3D"cx">     if (hasLayer() &amp;&amp; layer()-&gt;tran=
sform()) {
</span><span class=3D"cx">         fixed =3D position =3D=3D FixedPositio=
n;
</span><del>-        rect =3D LayoutRect(enclosingRectForPainting(layer()=
-&gt;transform()-&gt;mapRect(rect), document().deviceScaleFactor()));
</del><ins>+        rect =3D LayoutRect(encloseRectToDevicePixels(layer()=
-&gt;transform()-&gt;mapRect(rect), document().deviceScaleFactor()));
</ins><span class=3D"cx">         topLeft =3D rect.location();
</span><span class=3D"cx">         topLeft.move(locationOffset());
</span><span class=3D"cx">     } else if (position =3D=3D FixedPosition)
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderBoxh"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rBox.h (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderBox.h	2014-=
08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderBox.h	2014-08-28 04:24:31 UTC (r=
ev 173047)
</span><span class=3D"lines">@@ -149,7 +149,7 @@
</span><span class=3D"cx">     void move(LayoutUnit dx, LayoutUnit dy) { =
m_frameRect.move(dx, dy); }
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect frameRect() const { return m_fr=
ameRect; }
</span><del>-    IntRect pixelSnappedFrameRect() const { return pixelSnap=
pedIntRect(m_frameRect); }
</del><ins>+    IntRect pixelSnappedFrameRect() const { return snappedInt=
Rect(m_frameRect); }
</ins><span class=3D"cx">     void setFrameRect(const LayoutRect&amp; rec=
t) { m_frameRect =3D rect; }
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect marginBoxRect() const
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderBoxModelObjectcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rBoxModelObject.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderBoxModelObj=
ect.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp	2014-08-28 04=
:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -667,7 +667,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     bool colorVisible =3D bgColor.isValid() &a=
mp;&amp; bgColor.alpha();
</span><span class=3D"cx">     float deviceScaleFactor =3D document().dev=
iceScaleFactor();
</span><del>-    FloatRect pixelSnappedRect =3D pixelSnappedForPainting(r=
ect, deviceScaleFactor);
</del><ins>+    FloatRect pixelSnappedRect =3D snapRectToDevicePixels(rec=
t, deviceScaleFactor);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     // Fast path for drawing simple color back=
grounds.
</span><span class=3D"cx">     if (!isRoot &amp;&amp; !clippedWithLocalSc=
rolling &amp;&amp; !shouldPaintBackgroundImage &amp;&amp; isBorderFill &a=
mp;&amp; !bgLayer-&gt;next()) {
</span><span class=3D"lines">@@ -750,8 +750,8 @@
</span><span class=3D"cx">         // We have to draw our text into a mas=
k that can then be used to clip background drawing.
</span><span class=3D"cx">         // First figure out how big the mask h=
as to be.  It should be no bigger than what we need
</span><span class=3D"cx">         // to actually render, so we should in=
tersect the dirty rect with the border box of the background.
</span><del>-        maskRect =3D pixelSnappedIntRect(rect);
-        maskRect.intersect(pixelSnappedIntRect(paintInfo.rect));
</del><ins>+        maskRect =3D snappedIntRect(rect);
+        maskRect.intersect(snappedIntRect(paintInfo.rect));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">         // Now create the mask.
</span><span class=3D"cx">         maskImage =3D context-&gt;createCompat=
ibleBuffer(maskRect.size());
</span><span class=3D"lines">@@ -816,7 +816,7 @@
</span><span class=3D"cx">             if (boxShadowShouldBeAppliedToBack=
ground)
</span><span class=3D"cx">                 applyBoxShadowForBackground(co=
ntext, &amp;style());
</span><span class=3D"cx">=20
</span><del>-            FloatRect backgroundRectForPainting =3D pixelSna=
ppedForPainting(backgroundRect, deviceScaleFactor);
</del><ins>+            FloatRect backgroundRectForPainting =3D snapRectT=
oDevicePixels(backgroundRect, deviceScaleFactor);
</ins><span class=3D"cx">             if (baseColor.alpha()) {
</span><span class=3D"cx">                 if (!baseBgColorOnly &amp;&amp=
; bgColor.alpha())
</span><span class=3D"cx">                     baseColor =3D baseColor.bl=
end(bgColor);
</span><span class=3D"lines">@@ -1072,10 +1072,10 @@
</span><span class=3D"cx"> {
</span><span class=3D"cx">     float deviceScaleFactor =3D document().dev=
iceScaleFactor();
</span><span class=3D"cx">     // FIXME: We need a better rounding strate=
gy to round/space out tiles.
</span><del>-    geometry.setTileSize(LayoutSize(pixelSnappedForPainting(=
LayoutRect(geometry.destRect().location(), geometry.tileSize()), deviceSc=
aleFactor).size()));
-    geometry.setSpaceSize(LayoutSize(pixelSnappedForPainting(LayoutRect(=
LayoutPoint(), geometry.spaceSize()), deviceScaleFactor).size()));
</del><ins>+    geometry.setTileSize(LayoutSize(snapRectToDevicePixels(La=
youtRect(geometry.destRect().location(), geometry.tileSize()), deviceScal=
eFactor).size()));
+    geometry.setSpaceSize(LayoutSize(snapRectToDevicePixels(LayoutRect(L=
ayoutPoint(), geometry.spaceSize()), deviceScaleFactor).size()));
</ins><span class=3D"cx">     geometry.setDestOrigin(LayoutPoint(roundPoi=
ntToDevicePixels(geometry.destOrigin(), deviceScaleFactor)));
</span><del>-    geometry.setDestRect(LayoutRect(pixelSnappedForPainting(=
geometry.destRect(), deviceScaleFactor)));
</del><ins>+    geometry.setDestRect(LayoutRect(snapRectToDevicePixels(ge=
ometry.destRect(), deviceScaleFactor)));
</ins><span class=3D"cx">     geometry.setPhase(LayoutPoint(roundPointToD=
evicePixels(geometry.phase(), deviceScaleFactor)));
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -1264,7 +1264,7 @@
</span><span class=3D"cx">     float deviceScaleFactor =3D document().dev=
iceScaleFactor();
</span><span class=3D"cx">     LayoutRect rectWithOutsets =3D rect;
</span><span class=3D"cx">     rectWithOutsets.expand(style.imageOutsets(=
ninePieceImage));
</span><del>-    LayoutRect borderImageRect =3D LayoutRect(pixelSnappedFo=
rPainting(rectWithOutsets, deviceScaleFactor));
</del><ins>+    LayoutRect borderImageRect =3D LayoutRect(snapRectToDevic=
ePixels(rectWithOutsets, deviceScaleFactor));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutSize imageSize =3D calculateImageInt=
rinsicDimensions(styleImage, borderImageRect.size(), DoNotScaleByEffectiv=
eZoom);
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -1331,20 +1331,20 @@
</span><span class=3D"cx">         // The top left corner rect is (tx, ty=
, leftWidth, topWidth)
</span><span class=3D"cx">         // The rect to use from within the ima=
ge is obtained from our slice, and is (0, 0, leftSlice, topSlice)
</span><span class=3D"cx">         if (drawTop)
</span><del>-            graphicsContext-&gt;drawImage(image.get(), color=
Space, pixelSnappedForPainting(x, y, leftWidth, topWidth, deviceScaleFact=
or),
-                pixelSnappedForPainting(0, 0, leftSlice, topSlice, devic=
eScaleFactor), op);
</del><ins>+            graphicsContext-&gt;drawImage(image.get(), colorS=
pace, snapRectToDevicePixels(x, y, leftWidth, topWidth, deviceScaleFactor=
),
+                snapRectToDevicePixels(0, 0, leftSlice, topSlice, device=
ScaleFactor), op);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">         // The bottom left corner rect is (tx,=
 ty + h - bottomWidth, leftWidth, bottomWidth)
</span><span class=3D"cx">         // The rect to use from within the ima=
ge is (0, imageHeight - bottomSlice, leftSlice, botomSlice)
</span><span class=3D"cx">         if (drawBottom)
</span><del>-            graphicsContext-&gt;drawImage(image.get(), color=
Space, pixelSnappedForPainting(x, borderImageRect.maxY() - bottomWidth, l=
eftWidth, bottomWidth, deviceScaleFactor),
-                pixelSnappedForPainting(0, imageHeight - bottomSlice, le=
ftSlice, bottomSlice, deviceScaleFactor), op);
</del><ins>+            graphicsContext-&gt;drawImage(image.get(), colorS=
pace, snapRectToDevicePixels(x, borderImageRect.maxY() - bottomWidth, lef=
tWidth, bottomWidth, deviceScaleFactor),
+                snapRectToDevicePixels(0, imageHeight - bottomSlice, lef=
tSlice, bottomSlice, deviceScaleFactor), op);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">         // Paint the left edge.
</span><span class=3D"cx">         // Have to scale and tile into the bor=
der rect.
</span><span class=3D"cx">         if (sourceHeight &gt; 0)
</span><del>-            graphicsContext-&gt;drawTiledImage(image.get(), =
colorSpace, pixelSnappedForPainting(x, y + topWidth, leftWidth, destinati=
onHeight, deviceScaleFactor),
-                pixelSnappedForPainting(0, topSlice, leftSlice, sourceHe=
ight, deviceScaleFactor), FloatSize(leftSideScale, leftSideScale), Image:=
:StretchTile, (Image::TileRule)vRule, op);
</del><ins>+            graphicsContext-&gt;drawTiledImage(image.get(), c=
olorSpace, snapRectToDevicePixels(x, y + topWidth, leftWidth, destination=
Height, deviceScaleFactor),
+                snapRectToDevicePixels(0, topSlice, leftSlice, sourceHei=
ght, deviceScaleFactor), FloatSize(leftSideScale, leftSideScale), Image::=
StretchTile, (Image::TileRule)vRule, op);
</ins><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><span class=3D"cx">     if (drawRight) {
</span><span class=3D"lines">@@ -1352,32 +1352,32 @@
</span><span class=3D"cx">         // The top right corner rect is (tx + =
w - rightWidth, ty, rightWidth, topWidth)
</span><span class=3D"cx">         // The rect to use from within the ima=
ge is obtained from our slice, and is (imageWidth - rightSlice, 0, rightS=
lice, topSlice)
</span><span class=3D"cx">         if (drawTop)
</span><del>-            graphicsContext-&gt;drawImage(image.get(), color=
Space, pixelSnappedForPainting(borderImageRect.maxX() - rightWidth, y, ri=
ghtWidth, topWidth, deviceScaleFactor),
-                pixelSnappedForPainting(imageWidth - rightSlice, 0, righ=
tSlice, topSlice, deviceScaleFactor), op);
</del><ins>+            graphicsContext-&gt;drawImage(image.get(), colorS=
pace, snapRectToDevicePixels(borderImageRect.maxX() - rightWidth, y, righ=
tWidth, topWidth, deviceScaleFactor),
+                snapRectToDevicePixels(imageWidth - rightSlice, 0, right=
Slice, topSlice, deviceScaleFactor), op);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">         // The bottom right corner rect is (tx=
 + w - rightWidth, ty + h - bottomWidth, rightWidth, bottomWidth)
</span><span class=3D"cx">         // The rect to use from within the ima=
ge is (imageWidth - rightSlice, imageHeight - bottomSlice, rightSlice, bo=
ttomSlice)
</span><span class=3D"cx">         if (drawBottom)
</span><del>-            graphicsContext-&gt;drawImage(image.get(), color=
Space, pixelSnappedForPainting(borderImageRect.maxX() - rightWidth, borde=
rImageRect.maxY() - bottomWidth,
-                rightWidth, bottomWidth, deviceScaleFactor), pixelSnappe=
dForPainting(imageWidth - rightSlice, imageHeight - bottomSlice, rightSli=
ce, bottomSlice, deviceScaleFactor),
</del><ins>+            graphicsContext-&gt;drawImage(image.get(), colorS=
pace, snapRectToDevicePixels(borderImageRect.maxX() - rightWidth, borderI=
mageRect.maxY() - bottomWidth,
+                rightWidth, bottomWidth, deviceScaleFactor), snapRectToD=
evicePixels(imageWidth - rightSlice, imageHeight - bottomSlice, rightSlic=
e, bottomSlice, deviceScaleFactor),
</ins><span class=3D"cx">                 op);
</span><span class=3D"cx">=20
</span><span class=3D"cx">         // Paint the right edge.
</span><span class=3D"cx">         if (sourceHeight &gt; 0)
</span><del>-            graphicsContext-&gt;drawTiledImage(image.get(), =
colorSpace, pixelSnappedForPainting(borderImageRect.maxX() - rightWidth, =
y + topWidth, rightWidth, destinationHeight, deviceScaleFactor),
-                pixelSnappedForPainting(imageWidth - rightSlice, topSlic=
e, rightSlice, sourceHeight, deviceScaleFactor), FloatSize(rightSideScale=
, rightSideScale),
</del><ins>+            graphicsContext-&gt;drawTiledImage(image.get(), c=
olorSpace, snapRectToDevicePixels(borderImageRect.maxX() - rightWidth, y =
+ topWidth, rightWidth, destinationHeight, deviceScaleFactor),
+                snapRectToDevicePixels(imageWidth - rightSlice, topSlice=
, rightSlice, sourceHeight, deviceScaleFactor), FloatSize(rightSideScale,=
 rightSideScale),
</ins><span class=3D"cx">                 Image::StretchTile, (Image::Til=
eRule)vRule, op);
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // Paint the top edge.
</span><span class=3D"cx">     if (drawTop &amp;&amp; sourceWidth &gt; 0)
</span><del>-        graphicsContext-&gt;drawTiledImage(image.get(), colo=
rSpace, pixelSnappedForPainting(x + leftWidth, y, destinationWidth, topWi=
dth, deviceScaleFactor),
-            pixelSnappedForPainting(leftSlice, 0, sourceWidth, topSlice,=
 deviceScaleFactor), FloatSize(topSideScale, topSideScale), (Image::TileR=
ule)hRule, Image::StretchTile, op);
</del><ins>+        graphicsContext-&gt;drawTiledImage(image.get(), color=
Space, snapRectToDevicePixels(x + leftWidth, y, destinationWidth, topWidt=
h, deviceScaleFactor),
+            snapRectToDevicePixels(leftSlice, 0, sourceWidth, topSlice, =
deviceScaleFactor), FloatSize(topSideScale, topSideScale), (Image::TileRu=
le)hRule, Image::StretchTile, op);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     // Paint the bottom edge.
</span><span class=3D"cx">     if (drawBottom &amp;&amp; sourceWidth &gt;=
 0)
</span><del>-        graphicsContext-&gt;drawTiledImage(image.get(), colo=
rSpace, pixelSnappedForPainting(x + leftWidth, borderImageRect.maxY() - b=
ottomWidth, destinationWidth, bottomWidth, deviceScaleFactor),
-            pixelSnappedForPainting(leftSlice, imageHeight - bottomSlice=
, sourceWidth, bottomSlice, deviceScaleFactor), FloatSize(bottomSideScale=
, bottomSideScale),
</del><ins>+        graphicsContext-&gt;drawTiledImage(image.get(), color=
Space, snapRectToDevicePixels(x + leftWidth, borderImageRect.maxY() - bot=
tomWidth, destinationWidth, bottomWidth, deviceScaleFactor),
+            snapRectToDevicePixels(leftSlice, imageHeight - bottomSlice,=
 sourceWidth, bottomSlice, deviceScaleFactor), FloatSize(bottomSideScale,=
 bottomSideScale),
</ins><span class=3D"cx">             (Image::TileRule)hRule, Image::Stre=
tchTile, op);
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // Paint the middle.
</span><span class=3D"lines">@@ -1403,8 +1403,8 @@
</span><span class=3D"cx">             middleScaleFactor.setHeight(destin=
ationHeight / sourceHeight);
</span><span class=3D"cx">        =20
</span><span class=3D"cx">         graphicsContext-&gt;drawTiledImage(ima=
ge.get(), colorSpace,
</span><del>-            pixelSnappedForPainting(x + leftWidth, y + topWi=
dth, destinationWidth, destinationHeight, deviceScaleFactor),
-            pixelSnappedForPainting(leftSlice, topSlice, sourceWidth, so=
urceHeight, deviceScaleFactor),
</del><ins>+            snapRectToDevicePixels(x + leftWidth, y + topWidt=
h, destinationWidth, destinationHeight, deviceScaleFactor),
+            snapRectToDevicePixels(leftSlice, topSlice, sourceWidth, sou=
rceHeight, deviceScaleFactor),
</ins><span class=3D"cx">             middleScaleFactor, (Image::TileRule=
)hRule, (Image::TileRule)vRule, op);
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -1822,7 +1822,7 @@
</span><span class=3D"cx">                 }
</span><span class=3D"cx">=20
</span><span class=3D"cx">                 FloatRoundedRect pixelSnappedO=
uterThird =3D outerBorder.pixelSnappedRoundedRectForPainting(deviceScaleF=
actor);
</span><del>-                pixelSnappedOuterThird.setRect(pixelSnappedF=
orPainting(outerThirdRect, deviceScaleFactor));
</del><ins>+                pixelSnappedOuterThird.setRect(snapRectToDevi=
cePixels(outerThirdRect, deviceScaleFactor));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">                 if (pixelSnappedOuterThird.isR=
ounded() &amp;&amp; bleedAvoidance !=3D BackgroundBleedUseTransparencyLay=
er)
</span><span class=3D"cx">                     path.addRoundedRect(pixelS=
nappedOuterThird);
</span><span class=3D"lines">@@ -1830,7 +1830,7 @@
</span><span class=3D"cx">                     path.addRect(pixelSnappedO=
uterThird.rect());
</span><span class=3D"cx">=20
</span><span class=3D"cx">                 FloatRoundedRect pixelSnappedI=
nnerThird =3D innerBorder.pixelSnappedRoundedRectForPainting(deviceScaleF=
actor);
</span><del>-                pixelSnappedInnerThird.setRect(pixelSnappedF=
orPainting(innerThirdRect, deviceScaleFactor));
</del><ins>+                pixelSnappedInnerThird.setRect(snapRectToDevi=
cePixels(innerThirdRect, deviceScaleFactor));
</ins><span class=3D"cx">                 if (pixelSnappedInnerThird.isRo=
unded() &amp;&amp; bleedAvoidance !=3D BackgroundBleedUseTransparencyLaye=
r)
</span><span class=3D"cx">                     path.addRoundedRect(pixelS=
nappedInnerThird);
</span><span class=3D"cx">                 else
</span><span class=3D"lines">@@ -2038,7 +2038,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     graphicsContext-&gt;setStrokeStyle(NoStrok=
e);
</span><span class=3D"cx">     graphicsContext-&gt;setFillColor(color, st=
yle.colorSpace());
</span><del>-    graphicsContext-&gt;drawRect(pixelSnappedForPainting(bor=
derRect, document().deviceScaleFactor()));
</del><ins>+    graphicsContext-&gt;drawRect(snapRectToDevicePixels(borde=
rRect, document().deviceScaleFactor()));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> static void findInnerVertex(const FloatPoint&a=
mp; outerCorner, const FloatPoint&amp; innerCorner, const FloatPoint&amp;=
 centerPoint, FloatPoint&amp; result)
</span><span class=3D"lines">@@ -2407,7 +2407,7 @@
</span><span class=3D"cx">             if (fillRect.isEmpty())
</span><span class=3D"cx">                 continue;
</span><span class=3D"cx">=20
</span><del>-            FloatRect pixelSnappedShadowRect =3D pixelSnappe=
dForPainting(border.rect(), deviceScaleFactor);
</del><ins>+            FloatRect pixelSnappedShadowRect =3D snapRectToDe=
vicePixels(border.rect(), deviceScaleFactor);
</ins><span class=3D"cx">             pixelSnappedShadowRect.inflate(shad=
owPaintingExtent + shadowSpread);
</span><span class=3D"cx">             pixelSnappedShadowRect.move(shadow=
Offset);
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -2497,7 +2497,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">             Color fillColor(shadowColor.red(),=
 shadowColor.green(), shadowColor.blue(), 255);
</span><span class=3D"cx">=20
</span><del>-            FloatRect pixelSnappedOuterRect =3D pixelSnapped=
ForPainting(areaCastingShadowInHole(LayoutRect(pixelSnappedBorderRect.rec=
t()), shadowPaintingExtent, shadowSpread, shadowOffset), deviceScaleFacto=
r);
</del><ins>+            FloatRect pixelSnappedOuterRect =3D snapRectToDev=
icePixels(areaCastingShadowInHole(LayoutRect(pixelSnappedBorderRect.rect(=
)), shadowPaintingExtent, shadowSpread, shadowOffset), deviceScaleFactor)=
;
</ins><span class=3D"cx">             FloatRoundedRect pixelSnappedRounde=
dHole =3D FloatRoundedRect(pixelSnappedHoleRect, pixelSnappedBorderRect.r=
adii());
</span><span class=3D"cx">=20
</span><span class=3D"cx">             GraphicsContextStateSaver stateSav=
er(*context);
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderDetailsMarkercpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rDetailsMarker.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderDetailsMark=
er.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderDetailsMarker.cpp	2014-08-28 04:=
24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -125,7 +125,7 @@
</span><span class=3D"cx">     overflowRect.moveBy(boxOrigin);
</span><span class=3D"cx">     overflowRect.inflate(maximalOutlineSize(pa=
intInfo.phase));
</span><span class=3D"cx">=20
</span><del>-    if (!paintInfo.rect.intersects(pixelSnappedIntRect(overf=
lowRect)))
</del><ins>+    if (!paintInfo.rect.intersects(snappedIntRect(overflowRec=
t)))
</ins><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     const Color color(style().visitedDependent=
Color(CSSPropertyColor));
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderEmbeddedObjectcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rEmbeddedObject.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderEmbeddedObj=
ect.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp	2014-08-28 04=
:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -210,7 +210,7 @@
</span><span class=3D"cx">     contentLocation.move(borderLeft() + paddin=
gLeft(), borderTop() + paddingTop());
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect rect(contentLocation, contentSi=
ze);
</span><del>-    IntRect alignedRect =3D pixelSnappedIntRect(rect);
</del><ins>+    IntRect alignedRect =3D snappedIntRect(rect);
</ins><span class=3D"cx">     if (alignedRect.width() &lt;=3D 0 || aligne=
dRect.height() &lt;=3D 0)
</span><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -423,7 +423,7 @@
</span><span class=3D"cx">     if (!rootRenderView)
</span><span class=3D"cx">         return true;
</span><span class=3D"cx">=20
</span><del>-    IntRect rootViewRect =3D view().frameView().convertToRoo=
tView(pixelSnappedIntRect(rect));
</del><ins>+    IntRect rootViewRect =3D view().frameView().convertToRoot=
View(snappedIntRect(rect));
</ins><span class=3D"cx">    =20
</span><span class=3D"cx">     HitTestRequest request(HitTestRequest::Rea=
dOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping | HitTest=
Request::DisallowShadowContent | HitTestRequest::AllowChildFrameContent);
</span><span class=3D"cx">     HitTestResult result;
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderFieldsetcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rFieldset.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderFieldset.cp=
p	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderFieldset.cpp	2014-08-28 04:24:31=
 UTC (rev 173047)
</span><span class=3D"lines">@@ -186,7 +186,7 @@
</span><span class=3D"cx">         clipRect.setWidth(std::max&lt;LayoutUn=
it&gt;(style().borderLeftWidth(), legend-&gt;width()));
</span><span class=3D"cx">         clipRect.setHeight(legend-&gt;height()=
);
</span><span class=3D"cx">     }
</span><del>-    graphicsContext-&gt;clipOut(pixelSnappedForPainting(clip=
Rect, document().deviceScaleFactor()));
</del><ins>+    graphicsContext-&gt;clipOut(snapRectToDevicePixels(clipRe=
ct, document().deviceScaleFactor()));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     paintBorder(paintInfo, paintRect, style())=
;
</span><span class=3D"cx"> }
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderFlowThreadcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rFlowThread.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderFlowThread.=
cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderFlowThread.cpp	2014-08-28 04:24:=
31 UTC (rev 173047)
</span><span class=3D"lines">@@ -1382,7 +1382,7 @@
</span><span class=3D"cx">         FloatRect inflatedRect =3D borderBox;
</span><span class=3D"cx">         block-&gt;theme().adjustRepaintRect(*b=
lock, inflatedRect);
</span><span class=3D"cx">=20
</span><del>-        region-&gt;addVisualOverflowForBox(block, pixelSnapp=
edIntRect(LayoutRect(inflatedRect)));
</del><ins>+        region-&gt;addVisualOverflowForBox(block, snappedIntR=
ect(LayoutRect(inflatedRect)));
</ins><span class=3D"cx">         if (region =3D=3D endRegion)
</span><span class=3D"cx">             break;
</span><span class=3D"cx">     }
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderFrameSetcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rFrameSet.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderFrameSet.cp=
p	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderFrameSet.cpp	2014-08-28 04:24:31=
 UTC (rev 173047)
</span><span class=3D"lines">@@ -144,7 +144,7 @@
</span><span class=3D"cx">             toRenderElement(child)-&gt;paint(p=
aintInfo, adjustedPaintOffset);
</span><span class=3D"cx">             xPos +=3D m_cols.m_sizes[c];
</span><span class=3D"cx">             if (borderThickness &amp;&amp; m_c=
ols.m_allowBorder[c + 1]) {
</span><del>-                paintColumnBorder(paintInfo, pixelSnappedInt=
Rect(LayoutRect(adjustedPaintOffset.x() + xPos, adjustedPaintOffset.y() +=
 yPos, borderThickness, height())));
</del><ins>+                paintColumnBorder(paintInfo, snappedIntRect(L=
ayoutRect(adjustedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos,=
 borderThickness, height())));
</ins><span class=3D"cx">                 xPos +=3D borderThickness;
</span><span class=3D"cx">             }
</span><span class=3D"cx">             child =3D child-&gt;nextSibling();
</span><span class=3D"lines">@@ -153,7 +153,7 @@
</span><span class=3D"cx">         }
</span><span class=3D"cx">         yPos +=3D m_rows.m_sizes[r];
</span><span class=3D"cx">         if (borderThickness &amp;&amp; m_rows.=
m_allowBorder[r + 1]) {
</span><del>-            paintRowBorder(paintInfo, pixelSnappedIntRect(La=
youtRect(adjustedPaintOffset.x(), adjustedPaintOffset.y() + yPos, width()=
, borderThickness)));
</del><ins>+            paintRowBorder(paintInfo, snappedIntRect(LayoutRe=
ct(adjustedPaintOffset.x(), adjustedPaintOffset.y() + yPos, width(), bord=
erThickness)));
</ins><span class=3D"cx">             yPos +=3D borderThickness;
</span><span class=3D"cx">         }
</span><span class=3D"cx">     }
</span><span class=3D"lines">@@ -483,10 +483,10 @@
</span><span class=3D"cx">     updateLayerTransform();
</span><span class=3D"cx">=20
</span><span class=3D"cx">     if (doFullRepaint) {
</span><del>-        repaintUsingContainer(repaintContainer, pixelSnapped=
IntRect(oldBounds));
</del><ins>+        repaintUsingContainer(repaintContainer, snappedIntRec=
t(oldBounds));
</ins><span class=3D"cx">         LayoutRect newBounds =3D clippedOverflo=
wRectForRepaint(repaintContainer);
</span><span class=3D"cx">         if (newBounds !=3D oldBounds)
</span><del>-            repaintUsingContainer(repaintContainer, pixelSna=
ppedIntRect(newBounds));
</del><ins>+            repaintUsingContainer(repaintContainer, snappedIn=
tRect(newBounds));
</ins><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><span class=3D"cx">     clearNeedsLayout();
</span><span class=3D"lines">@@ -559,7 +559,7 @@
</span><span class=3D"cx">         int height =3D m_rows.m_sizes[r];
</span><span class=3D"cx">=20
</span><span class=3D"cx">         for (int c =3D 0; c &lt; cols; c++) {
</span><del>-            IntRect oldFrameRect =3D pixelSnappedIntRect(chi=
ld-&gt;frameRect());
</del><ins>+            IntRect oldFrameRect =3D snappedIntRect(child-&gt=
;frameRect());
</ins><span class=3D"cx">=20
</span><span class=3D"cx">             int width =3D m_cols.m_sizes[c];
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -607,7 +607,7 @@
</span><span class=3D"cx">         xPos =3D 0;
</span><span class=3D"cx">         for (int c =3D 0; c &lt; cols; c++) {
</span><span class=3D"cx">             // ensure the rows and columns are=
 filled
</span><del>-            IntRect oldRect =3D pixelSnappedIntRect(child-&g=
t;frameRect());
</del><ins>+            IntRect oldRect =3D snappedIntRect(child-&gt;fram=
eRect());
</ins><span class=3D"cx">=20
</span><span class=3D"cx">             child-&gt;setLocation(IntPoint(xPo=
s, yPos));
</span><span class=3D"cx">             child-&gt;setHeight(m_rows.m_sizes=
[r]);
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderHTMLCanvascpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rHTMLCanvas.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderHTMLCanvas.=
cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderHTMLCanvas.cpp	2014-08-28 04:24:=
31 UTC (rev 173047)
</span><span class=3D"lines">@@ -77,7 +77,7 @@
</span><span class=3D"cx">     bool clip =3D !contentRect.contains(paintR=
ect);
</span><span class=3D"cx">     GraphicsContextStateSaver stateSaver(*pain=
tInfo.context, clip);
</span><span class=3D"cx">     if (clip)
</span><del>-        paintInfo.context-&gt;clip(pixelSnappedIntRect(conte=
ntRect));
</del><ins>+        paintInfo.context-&gt;clip(snappedIntRect(contentRect=
));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     if (Page* page =3D frame().page()) {
</span><span class=3D"cx">         if (paintInfo.phase =3D=3D PaintPhaseF=
oreground)
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderImagecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rImage.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderImage.cpp	2=
014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderImage.cpp	2014-08-28 04:24:31 UT=
C (rev 173047)
</span><span class=3D"lines">@@ -409,7 +409,7 @@
</span><span class=3D"cx">             context-&gt;setStrokeStyle(SolidSt=
roke);
</span><span class=3D"cx">             context-&gt;setStrokeColor(Color::=
lightGray, style().colorSpace());
</span><span class=3D"cx">             context-&gt;setFillColor(Color::tr=
ansparent, style().colorSpace());
</span><del>-            context-&gt;drawRect(pixelSnappedForPainting(Lay=
outRect(paintOffset.x() + leftBorder + leftPad, paintOffset.y() + topBord=
er + topPad, cWidth, cHeight), deviceScaleFactor), borderWidth);
</del><ins>+            context-&gt;drawRect(snapRectToDevicePixels(Layou=
tRect(paintOffset.x() + leftBorder + leftPad, paintOffset.y() + topBorder=
 + topPad, cWidth, cHeight), deviceScaleFactor), borderWidth);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">             bool errorPictureDrawn =3D false;
</span><span class=3D"cx">             LayoutSize imageOffset;
</span><span class=3D"lines">@@ -439,7 +439,7 @@
</span><span class=3D"cx"> #if ENABLE(CSS_IMAGE_ORIENTATION)
</span><span class=3D"cx">                 orientationDescription.setImag=
eOrientationEnum(style().imageOrientation());
</span><span class=3D"cx"> #endif
</span><del>-                context-&gt;drawImage(image.get(), style().c=
olorSpace(), pixelSnappedForPainting(LayoutRect(paintOffset + imageOffset=
, imageSize), deviceScaleFactor), orientationDescription);
</del><ins>+                context-&gt;drawImage(image.get(), style().co=
lorSpace(), snapRectToDevicePixels(LayoutRect(paintOffset + imageOffset, =
imageSize), deviceScaleFactor), orientationDescription);
</ins><span class=3D"cx">                 errorPictureDrawn =3D true;
</span><span class=3D"cx">             }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -480,7 +480,7 @@
</span><span class=3D"cx">         if (clip)
</span><span class=3D"cx">             context-&gt;clip(contentRect);
</span><span class=3D"cx">=20
</span><del>-        paintIntoRect(context, pixelSnappedForPainting(paint=
Rect, deviceScaleFactor));
</del><ins>+        paintIntoRect(context, snapRectToDevicePixels(paintRe=
ct, deviceScaleFactor));
</ins><span class=3D"cx">        =20
</span><span class=3D"cx">         if (cachedImage() &amp;&amp; page &amp=
;&amp; paintInfo.phase =3D=3D PaintPhaseForeground) {
</span><span class=3D"cx">             // For now, count images as unpain=
ted if they are still progressively loading. We may want=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderInlinecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rInline.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderInline.cpp	=
2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderInline.cpp	2014-08-28 04:24:31 U=
TC (rev 173047)
</span><span class=3D"lines">@@ -1543,11 +1543,11 @@
</span><span class=3D"cx">     LayoutRect box(LayoutPoint(paintOffset.x()=
 + thisline.x() - offset, paintOffset.y() + thisline.y() - offset),
</span><span class=3D"cx">         LayoutSize(thisline.width() + offset, =
thisline.height() + offset));
</span><span class=3D"cx">=20
</span><del>-    IntRect pixelSnappedBox =3D pixelSnappedIntRect(box);
</del><ins>+    IntRect pixelSnappedBox =3D snappedIntRect(box);
</ins><span class=3D"cx">     if (pixelSnappedBox.isEmpty())
</span><span class=3D"cx">         return;
</span><del>-    IntRect pixelSnappedLastLine =3D pixelSnappedIntRect(pai=
ntOffset.x() + lastline.x(), 0, lastline.width(), 0);
-    IntRect pixelSnappedNextLine =3D pixelSnappedIntRect(paintOffset.x()=
 + nextline.x(), 0, nextline.width(), 0);
</del><ins>+    IntRect pixelSnappedLastLine =3D snappedIntRect(paintOffs=
et.x() + lastline.x(), 0, lastline.width(), 0);
+    IntRect pixelSnappedNextLine =3D snappedIntRect(paintOffset.x() + ne=
xtline.x(), 0, nextline.width(), 0);
</ins><span class=3D"cx">    =20
</span><span class=3D"cx">     // left edge
</span><span class=3D"cx">     drawLineForBoxSide(graphicsContext,
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderLayercpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rLayer.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderLayer.cpp	2=
014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp	2014-08-28 04:24:31 UT=
C (rev 173047)
</span><span class=3D"lines">@@ -855,7 +855,7 @@
</span><span class=3D"cx">         RenderBox* box =3D renderBox();
</span><span class=3D"cx">         ASSERT(box);
</span><span class=3D"cx">         m_transform-&gt;makeIdentity();
</span><del>-        box-&gt;style().applyTransform(*m_transform, pixelSn=
appedForPainting(box-&gt;borderBoxRect(), box-&gt;document().deviceScaleF=
actor()), RenderStyle::IncludeTransformOrigin);
</del><ins>+        box-&gt;style().applyTransform(*m_transform, snapRect=
ToDevicePixels(box-&gt;borderBoxRect(), box-&gt;document().deviceScaleFac=
tor()), RenderStyle::IncludeTransformOrigin);
</ins><span class=3D"cx">         makeMatrixRenderable(*m_transform, canR=
ender3DTransforms());
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -870,7 +870,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     RenderBox* box =3D renderBox();
</span><span class=3D"cx">     ASSERT(box);
</span><del>-    FloatRect pixelSnappedBorderRect =3D pixelSnappedForPain=
ting(box-&gt;borderBoxRect(), box-&gt;document().deviceScaleFactor());
</del><ins>+    FloatRect pixelSnappedBorderRect =3D snapRectToDevicePixe=
ls(box-&gt;borderBoxRect(), box-&gt;document().deviceScaleFactor());
</ins><span class=3D"cx">     if (renderer().style().isRunningAccelerated=
Animation()) {
</span><span class=3D"cx">         TransformationMatrix currTransform;
</span><span class=3D"cx">         RefPtr&lt;RenderStyle&gt; style =3D re=
nderer().animation().getAnimatedStyleForRenderer(&amp;renderer());
</span><span class=3D"lines">@@ -1698,7 +1698,7 @@
</span><span class=3D"cx">         context-&gt;save();
</span><span class=3D"cx">         LayoutRect adjustedClipRect =3D painti=
ngExtent(*this, paintingInfo.rootLayer, dirtyRect, paintingInfo.paintBeha=
vior);
</span><span class=3D"cx">         adjustedClipRect.move(paintingInfo.sub=
pixelAccumulation);
</span><del>-        FloatRect pixelSnappedClipRect =3D pixelSnappedForPa=
inting(adjustedClipRect, renderer().document().deviceScaleFactor());
</del><ins>+        FloatRect pixelSnappedClipRect =3D snapRectToDevicePi=
xels(adjustedClipRect, renderer().document().deviceScaleFactor());
</ins><span class=3D"cx">         context-&gt;clip(pixelSnappedClipRect);
</span><span class=3D"cx">=20
</span><span class=3D"cx"> #if ENABLE(CSS_COMPOSITING)
</span><span class=3D"lines">@@ -2421,7 +2421,7 @@
</span><span class=3D"cx">             // that put web views into scrolli=
ng containers, such as Mac OS X Mail.
</span><span class=3D"cx">             // The canAutoscroll function in E=
ventHandler also knows about this.
</span><span class=3D"cx">             if (Page* page =3D frameView.frame=
().page())
</span><del>-                page-&gt;chrome().scrollRectIntoView(pixelSn=
appedIntRect(rect));
</del><ins>+                page-&gt;chrome().scrollRectIntoView(snappedI=
ntRect(rect));
</ins><span class=3D"cx">         }
</span><span class=3D"cx">     }
</span><span class=3D"cx">    =20
</span><span class=3D"lines">@@ -2718,7 +2718,7 @@
</span><span class=3D"cx">     bool hasVerticalBar =3D verticalScrollbar(=
);
</span><span class=3D"cx">     bool hasResizer =3D renderer().style().res=
ize() !=3D RESIZE_NONE;
</span><span class=3D"cx">     if ((hasHorizontalBar &amp;&amp; hasVertic=
alBar) || (hasResizer &amp;&amp; (hasHorizontalBar || hasVerticalBar)))
</span><del>-        return pixelSnappedIntRect(cornerRect(this, renderBo=
x()-&gt;borderBoxRect()));
</del><ins>+        return snappedIntRect(cornerRect(this, renderBox()-&g=
t;borderBoxRect()));
</ins><span class=3D"cx">     return IntRect();
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -3503,7 +3503,7 @@
</span><span class=3D"cx">         context-&gt;restore();
</span><span class=3D"cx">         return;
</span><span class=3D"cx">     }
</span><del>-    FloatRect imageRect =3D pixelSnappedForPainting(LayoutRe=
ct(resizerCornerRect.maxXMaxYCorner() - cornerResizerSize, cornerResizerS=
ize), renderer().document().deviceScaleFactor());
</del><ins>+    FloatRect imageRect =3D snapRectToDevicePixels(LayoutRect=
(resizerCornerRect.maxXMaxYCorner() - cornerResizerSize, cornerResizerSiz=
e), renderer().document().deviceScaleFactor());
</ins><span class=3D"cx">     context-&gt;drawImage(resizeCornerImage.get=
(), renderer().style().colorSpace(), imageRect);
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -3542,7 +3542,7 @@
</span><span class=3D"cx">         context-&gt;setStrokeColor(Color(makeR=
GB(217, 217, 217)), ColorSpaceDeviceRGB);
</span><span class=3D"cx">         context-&gt;setStrokeThickness(1.0f);
</span><span class=3D"cx">         context-&gt;setFillColor(Color::transp=
arent, ColorSpaceDeviceRGB);
</span><del>-        context-&gt;drawRect(pixelSnappedIntRect(largerCorne=
r));
</del><ins>+        context-&gt;drawRect(snappedIntRect(largerCorner));
</ins><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -3570,7 +3570,7 @@
</span><span class=3D"cx">    =20
</span><span class=3D"cx">     IntRect resizeControlRect;
</span><span class=3D"cx">     if (renderer().style().resize() !=3D RESIZ=
E_NONE) {
</span><del>-        resizeControlRect =3D pixelSnappedIntRect(resizerCor=
nerRect(this, box-&gt;borderBoxRect()));
</del><ins>+        resizeControlRect =3D snappedIntRect(resizerCornerRec=
t(this, box-&gt;borderBoxRect()));
</ins><span class=3D"cx">         if (resizeControlRect.contains(localPoi=
nt))
</span><span class=3D"cx">             return true;
</span><span class=3D"cx">     }
</span><span class=3D"lines">@@ -3670,7 +3670,7 @@
</span><span class=3D"cx">         context-&gt;save();
</span><span class=3D"cx">         LayoutRect adjustedClipRect =3D clipRe=
ct.rect();
</span><span class=3D"cx">         adjustedClipRect.move(paintingInfo.sub=
pixelAccumulation);
</span><del>-        context-&gt;clip(pixelSnappedForPainting(adjustedCli=
pRect, deviceScaleFactor));
</del><ins>+        context-&gt;clip(snapRectToDevicePixels(adjustedClipR=
ect, deviceScaleFactor));
</ins><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -4223,7 +4223,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // Now do a paint with the root layer shif=
ted to be us.
</span><span class=3D"cx">     LayoutSize adjustedSubpixelAccumulation =3D=
 offsetForThisLayer - LayoutSize(devicePixelSnappedOffsetForThisLayer);
</span><del>-    LayerPaintingInfo transformedPaintingInfo(this, LayoutRe=
ct(enclosingRectForPainting(transform.inverse().mapRect(paintingInfo.pain=
tDirtyRect), deviceScaleFactor)),
</del><ins>+    LayerPaintingInfo transformedPaintingInfo(this, LayoutRec=
t(encloseRectToDevicePixels(transform.inverse().mapRect(paintingInfo.pain=
tDirtyRect), deviceScaleFactor)),
</ins><span class=3D"cx">         paintingInfo.paintBehavior, adjustedSub=
pixelAccumulation, paintingInfo.subtreePaintRoot, paintingInfo.overlapTes=
tRequests);
</span><span class=3D"cx">     paintLayerContentsAndReflection(context, t=
ransformedPaintingInfo, paintFlags);
</span><span class=3D"cx"> }
</span><span class=3D"lines">@@ -4611,7 +4611,7 @@
</span><span class=3D"cx">         const LayerFragment&amp; fragment =3D =
layerFragments.at(i);
</span><span class=3D"cx">         clipToRect(localPaintingInfo, context,=
 fragment.backgroundRect);
</span><span class=3D"cx">         paintOverflowControls(context, rounded=
IntPoint(toLayoutPoint(fragment.layerBounds.location() - renderBoxLocatio=
n() + localPaintingInfo.subpixelAccumulation)),
</span><del>-            pixelSnappedIntRect(fragment.backgroundRect.rect=
()), true);
</del><ins>+            snappedIntRect(fragment.backgroundRect.rect()), t=
rue);
</ins><span class=3D"cx">         restoreClip(context, localPaintingInfo.=
paintDirtyRect, fragment.backgroundRect);
</span><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"lines">@@ -5028,7 +5028,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     for (int i =3D layerFragments.size() - 1; =
i &gt;=3D 0; --i) {
</span><span class=3D"cx">         const LayerFragment&amp; fragment =3D =
layerFragments.at(i);
</span><del>-        if (fragment.backgroundRect.intersects(hitTestLocati=
on) &amp;&amp; resizerCornerRect(this, pixelSnappedIntRect(fragment.layer=
Bounds)).contains(hitTestLocation.roundedPoint()))
</del><ins>+        if (fragment.backgroundRect.intersects(hitTestLocatio=
n) &amp;&amp; resizerCornerRect(this, snappedIntRect(fragment.layerBounds=
)).contains(hitTestLocation.roundedPoint()))
</ins><span class=3D"cx">             return true;
</span><span class=3D"cx">     }
</span><span class=3D"cx">    =20
</span><span class=3D"lines">@@ -5686,13 +5686,13 @@
</span><span class=3D"cx"> IntRect RenderLayer::absoluteBoundingBox() con=
st
</span><span class=3D"cx"> {
</span><span class=3D"cx">     const RenderLayer* rootLayer =3D root();
</span><del>-    return pixelSnappedIntRect(boundingBox(rootLayer, offset=
FromAncestor(rootLayer)));
</del><ins>+    return snappedIntRect(boundingBox(rootLayer, offsetFromAn=
cestor(rootLayer)));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> FloatRect RenderLayer::absoluteBoundingBoxForP=
ainting() const
</span><span class=3D"cx"> {
</span><span class=3D"cx">     const RenderLayer* rootLayer =3D root();
</span><del>-    return pixelSnappedForPainting(boundingBox(rootLayer, of=
fsetFromAncestor(rootLayer)), renderer().document().deviceScaleFactor());
</del><ins>+    return snapRectToDevicePixels(boundingBox(rootLayer, offs=
etFromAncestor(rootLayer)), renderer().document().deviceScaleFactor());
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> LayoutRect RenderLayer::calculateLayerBounds(c=
onst RenderLayer* ancestorLayer, const LayoutSize&amp; offsetFromRoot, Ca=
lculateLayerBoundsFlags flags) const
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderLayerBackingcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rLayerBacking.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderLayerBackin=
g.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp	2014-08-28 04:2=
4:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -364,7 +364,7 @@
</span><span class=3D"cx">     TransformationMatrix t;
</span><span class=3D"cx">     if (m_owningLayer.hasTransform()) {
</span><span class=3D"cx">         RenderBox&amp; renderBox =3D toRenderB=
ox(renderer());
</span><del>-        style.applyTransform(t, pixelSnappedForPainting(rend=
erBox.borderBoxRect(), deviceScaleFactor()), RenderStyle::ExcludeTransfor=
mOrigin);
</del><ins>+        style.applyTransform(t, snapRectToDevicePixels(render=
Box.borderBoxRect(), deviceScaleFactor()), RenderStyle::ExcludeTransformO=
rigin);
</ins><span class=3D"cx">         makeMatrixRenderable(t, compositor().ca=
nRender3DTransforms());
</span><span class=3D"cx">     }
</span><span class=3D"cx">    =20
</span><span class=3D"lines">@@ -714,7 +714,7 @@
</span><span class=3D"cx">     offsetFromParent =3D offsetFromParent + (c=
ompAncestor ? compAncestor-&gt;backing()-&gt;devicePixelFractionFromRende=
rer() : LayoutSize());
</span><span class=3D"cx">     relativeCompositingBounds.moveBy(offsetFro=
mParent);
</span><span class=3D"cx">=20
</span><del>-    LayoutRect enclosingRelativeCompositingBounds =3D Layout=
Rect(enclosingRectForPainting(relativeCompositingBounds, deviceScaleFacto=
r));
</del><ins>+    LayoutRect enclosingRelativeCompositingBounds =3D LayoutR=
ect(encloseRectToDevicePixels(relativeCompositingBounds, deviceScaleFacto=
r));
</ins><span class=3D"cx">     LayoutSize subpixelOffsetAdjustment =3D enc=
losingRelativeCompositingBounds.location() - relativeCompositingBounds.lo=
cation();
</span><span class=3D"cx">     LayoutSize rendererOffsetFromGraphicsLayer=
 =3D  toLayoutSize(localCompositingBounds.location()) + subpixelOffsetAdj=
ustment;
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -1084,14 +1084,14 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderLayerBacking::resetContentsRect()
</span><span class=3D"cx"> {
</span><del>-    m_graphicsLayer-&gt;setContentsRect(pixelSnappedIntRect(=
contentsBox()));
</del><ins>+    m_graphicsLayer-&gt;setContentsRect(snappedIntRect(conten=
tsBox()));
</ins><span class=3D"cx">    =20
</span><span class=3D"cx">     LayoutRect contentsClippingRect;
</span><span class=3D"cx">     if (renderer().isBox())
</span><span class=3D"cx">         contentsClippingRect =3D toRenderBox(r=
enderer()).contentBoxRect();
</span><span class=3D"cx">=20
</span><span class=3D"cx">     contentsClippingRect.move(contentOffsetInC=
ompostingLayer());
</span><del>-    m_graphicsLayer-&gt;setContentsClippingRect(pixelSnapped=
IntRect(contentsClippingRect));
</del><ins>+    m_graphicsLayer-&gt;setContentsClippingRect(snappedIntRec=
t(contentsClippingRect));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     m_graphicsLayer-&gt;setContentsTileSize(In=
tSize());
</span><span class=3D"cx">     m_graphicsLayer-&gt;setContentsTilePhase(I=
ntPoint());
</span><span class=3D"lines">@@ -1884,11 +1884,11 @@
</span><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // This is a no-op if the layer doesn't ha=
ve an inner layer for the image.
</span><del>-    m_graphicsLayer-&gt;setContentsRect(pixelSnappedIntRect(=
contentsBox()));
</del><ins>+    m_graphicsLayer-&gt;setContentsRect(snappedIntRect(conten=
tsBox()));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect contentsClippingRect =3D imageR=
enderer.contentBoxRect();
</span><span class=3D"cx">     contentsClippingRect.move(contentOffsetInC=
ompostingLayer());
</span><del>-    m_graphicsLayer-&gt;setContentsClippingRect(pixelSnapped=
IntRect(contentsClippingRect));
</del><ins>+    m_graphicsLayer-&gt;setContentsClippingRect(snappedIntRec=
t(contentsClippingRect));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     m_graphicsLayer-&gt;setContentsToImage(ima=
ge);
</span><span class=3D"cx">     bool isSimpleContainer =3D false;
</span><span class=3D"lines">@@ -1965,7 +1965,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect backgroundBox =3D backgroundRec=
tForBox(toRenderBox(renderer()));
</span><span class=3D"cx">     backgroundBox.move(contentOffsetInComposti=
ngLayer());
</span><del>-    return pixelSnappedForPainting(backgroundBox, deviceScal=
eFactor());
</del><ins>+    return snapRectToDevicePixels(backgroundBox, deviceScaleF=
actor());
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> GraphicsLayer* RenderLayerBacking::parentForSu=
blayers() const
</span><span class=3D"lines">@@ -2061,7 +2061,7 @@
</span><span class=3D"cx"> {
</span><span class=3D"cx">     ASSERT(!paintsIntoCompositedAncestor());
</span><span class=3D"cx">=20
</span><del>-    FloatRect pixelSnappedRectForPainting =3D pixelSnappedFo=
rPainting(r, deviceScaleFactor());
</del><ins>+    FloatRect pixelSnappedRectForPainting =3D snapRectToDevic=
ePixels(r, deviceScaleFactor());
</ins><span class=3D"cx">     FrameView&amp; frameView =3D owningLayer().=
renderer().view().frameView();
</span><span class=3D"cx">     if (m_isMainFrameRenderViewLayer &amp;&amp=
; frameView.isTrackingRepaints())
</span><span class=3D"cx">         frameView.addTrackedRepaintRect(pixelS=
nappedRectForPainting);
</span><span class=3D"lines">@@ -2209,7 +2209,7 @@
</span><span class=3D"cx">         context.translate(-scrollCornerAndResi=
zer.x(), -scrollCornerAndResizer.y());
</span><span class=3D"cx">         LayoutRect transformedClip =3D LayoutR=
ect(clip);
</span><span class=3D"cx">         transformedClip.moveBy(scrollCornerAnd=
Resizer.location());
</span><del>-        m_owningLayer.paintScrollCorner(&amp;context, IntPoi=
nt(), pixelSnappedIntRect(transformedClip));
</del><ins>+        m_owningLayer.paintScrollCorner(&amp;context, IntPoin=
t(), snappedIntRect(transformedClip));
</ins><span class=3D"cx">         m_owningLayer.paintResizer(&amp;context=
, IntPoint(), transformedClip);
</span><span class=3D"cx">         context.restore();
</span><span class=3D"cx">     }
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderLayerCompositorcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rLayerCompositor.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderLayerCompos=
itor.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp	2014-08-28 0=
4:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -1033,7 +1033,7 @@
</span><span class=3D"cx">         boundsComputed =3D true;
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><del>-    IntRect clipRect =3D pixelSnappedIntRect(layer.backgroun=
dClipRect(RenderLayer::ClipRectsContext(&amp;rootRenderLayer(), AbsoluteC=
lipRects)).rect()); // FIXME: Incorrect for CSS regions.
</del><ins>+    IntRect clipRect =3D snappedIntRect(layer.backgroundClipR=
ect(RenderLayer::ClipRectsContext(&amp;rootRenderLayer(), AbsoluteClipRec=
ts)).rect()); // FIXME: Incorrect for CSS regions.
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     // On iOS, pageScaleFactor() is not applie=
d by RenderView, so we should not scale here.
</span><span class=3D"cx">     // FIXME: Set Settings::delegatesPageScali=
ng to true for iOS.
</span><span class=3D"lines">@@ -2457,7 +2457,7 @@
</span><span class=3D"cx">         return pluginRenderer.hasLayer() &amp;=
&amp; pluginRenderer.layer()-&gt;isComposited();
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // Don't go into compositing mode if heigh=
t or width are zero, or size is 1x1.
</span><del>-    IntRect contentBox =3D pixelSnappedIntRect(pluginRendere=
r.contentBoxRect());
</del><ins>+    IntRect contentBox =3D snappedIntRect(pluginRenderer.cont=
entBoxRect());
</ins><span class=3D"cx">     return contentBox.height() * contentBox.wid=
th() &gt; 1;
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -2482,7 +2482,7 @@
</span><span class=3D"cx">         return frameRenderer.hasLayer() &amp;&=
amp; frameRenderer.layer()-&gt;isComposited();
</span><span class=3D"cx">    =20
</span><span class=3D"cx">     // Don't go into compositing mode if heigh=
t or width are zero.
</span><del>-    return !pixelSnappedIntRect(frameRenderer.contentBoxRect=
()).isEmpty();
</del><ins>+    return !snappedIntRect(frameRenderer.contentBoxRect()).is=
Empty();
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> bool RenderLayerCompositor::requiresCompositin=
gForAnimation(RenderLayerModelObject&amp; renderer) const
</span><span class=3D"lines">@@ -2735,7 +2735,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderLayerCompositor::paintContents(cons=
t GraphicsLayer* graphicsLayer, GraphicsContext&amp; context, GraphicsLay=
erPaintingPhase, const FloatRect&amp; clip)
</span><span class=3D"cx"> {
</span><del>-    IntRect pixelSnappedRectForIntegralPositionedItems =3D p=
ixelSnappedIntRect(LayoutRect(clip));
</del><ins>+    IntRect pixelSnappedRectForIntegralPositionedItems =3D sn=
appedIntRect(LayoutRect(clip));
</ins><span class=3D"cx">     if (graphicsLayer =3D=3D layerForHorizontal=
Scrollbar())
</span><span class=3D"cx">         paintScrollbar(m_renderView.frameView(=
).horizontalScrollbar(), context, pixelSnappedRectForIntegralPositionedIt=
ems);
</span><span class=3D"cx">     else if (graphicsLayer =3D=3D layerForVert=
icalScrollbar())
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderListBoxcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rListBox.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderListBox.cpp=
	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderListBox.cpp	2014-08-28 04:24:31 =
UTC (rev 173047)
</span><span class=3D"lines">@@ -321,7 +321,7 @@
</span><span class=3D"cx">     // Focus the last selected item.
</span><span class=3D"cx">     int selectedItem =3D selectElement().activ=
eSelectionEndListIndex();
</span><span class=3D"cx">     if (selectedItem &gt;=3D 0) {
</span><del>-        rects.append(pixelSnappedIntRect(itemBoundingBoxRect=
(additionalOffset, selectedItem)));
</del><ins>+        rects.append(snappedIntRect(itemBoundingBoxRect(addit=
ionalOffset, selectedItem)));
</ins><span class=3D"cx">         return;
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -332,7 +332,7 @@
</span><span class=3D"cx">         HTMLElement* element =3D listItems[i];
</span><span class=3D"cx">         if (isHTMLOptionElement(element) &amp;=
&amp; !element-&gt;isDisabledFormControl()) {
</span><span class=3D"cx">             selectElement().setActiveSelection=
EndIndex(i);
</span><del>-            rects.append(pixelSnappedIntRect(itemBoundingBox=
Rect(additionalOffset, i)));
</del><ins>+            rects.append(snappedIntRect(itemBoundingBoxRect(a=
dditionalOffset, i)));
</ins><span class=3D"cx">             return;
</span><span class=3D"cx">         }
</span><span class=3D"cx">     }
</span><span class=3D"lines">@@ -341,12 +341,12 @@
</span><span class=3D"cx"> void RenderListBox::paintScrollbar(PaintInfo&a=
mp; paintInfo, const LayoutPoint&amp; paintOffset)
</span><span class=3D"cx"> {
</span><span class=3D"cx">     if (m_vBar) {
</span><del>-        IntRect scrollRect =3D pixelSnappedIntRect(paintOffs=
et.x() + width() - borderRight() - m_vBar-&gt;width(),
</del><ins>+        IntRect scrollRect =3D snappedIntRect(paintOffset.x()=
 + width() - borderRight() - m_vBar-&gt;width(),
</ins><span class=3D"cx">             paintOffset.y() + borderTop(),
</span><span class=3D"cx">             m_vBar-&gt;width(),
</span><span class=3D"cx">             height() - (borderTop() + borderBo=
ttom()));
</span><span class=3D"cx">         m_vBar-&gt;setFrameRect(scrollRect);
</span><del>-        m_vBar-&gt;paint(paintInfo.context, pixelSnappedIntR=
ect(paintInfo.rect));
</del><ins>+        m_vBar-&gt;paint(paintInfo.context, snappedIntRect(pa=
intInfo.rect));
</ins><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -439,7 +439,7 @@
</span><span class=3D"cx">         ColorSpace colorSpace =3D listItemElem=
ent-&gt;renderStyle() ? listItemElement-&gt;renderStyle()-&gt;colorSpace(=
) : style().colorSpace();
</span><span class=3D"cx">         LayoutRect itemRect =3D itemBoundingBo=
xRect(paintOffset, listIndex);
</span><span class=3D"cx">         itemRect.intersect(controlClipRect(pai=
ntOffset));
</span><del>-        paintInfo.context-&gt;fillRect(pixelSnappedIntRect(i=
temRect), backColor, colorSpace);
</del><ins>+        paintInfo.context-&gt;fillRect(snappedIntRect(itemRec=
t), backColor, colorSpace);
</ins><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderListMarkercpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rListMarker.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderListMarker.=
cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderListMarker.cpp	2014-08-28 04:24:=
31 UTC (rev 173047)
</span><span class=3D"lines">@@ -1185,7 +1185,7 @@
</span><span class=3D"cx">     overflowRect.moveBy(boxOrigin);
</span><span class=3D"cx">     overflowRect.inflate(maximalOutlineSize(pa=
intInfo.phase));
</span><span class=3D"cx">=20
</span><del>-    if (!paintInfo.rect.intersects(pixelSnappedIntRect(overf=
lowRect)))
</del><ins>+    if (!paintInfo.rect.intersects(snappedIntRect(overflowRec=
t)))
</ins><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect box(boxOrigin, size());
</span><span class=3D"lines">@@ -1200,7 +1200,7 @@
</span><span class=3D"cx">         if (selectionState() !=3D SelectionNon=
e) {
</span><span class=3D"cx">             LayoutRect selRect =3D localSelect=
ionRect();
</span><span class=3D"cx">             selRect.moveBy(boxOrigin);
</span><del>-            context-&gt;fillRect(pixelSnappedIntRect(selRect=
), selectionBackgroundColor(), style().colorSpace());
</del><ins>+            context-&gt;fillRect(snappedIntRect(selRect), sel=
ectionBackgroundColor(), style().colorSpace());
</ins><span class=3D"cx">         }
</span><span class=3D"cx">         return;
</span><span class=3D"cx">     }
</span><span class=3D"lines">@@ -1208,7 +1208,7 @@
</span><span class=3D"cx">     if (selectionState() !=3D SelectionNone) {
</span><span class=3D"cx">         LayoutRect selRect =3D localSelectionR=
ect();
</span><span class=3D"cx">         selRect.moveBy(boxOrigin);
</span><del>-        context-&gt;fillRect(pixelSnappedIntRect(selRect), s=
electionBackgroundColor(), style().colorSpace());
</del><ins>+        context-&gt;fillRect(snappedIntRect(selRect), selecti=
onBackgroundColor(), style().colorSpace());
</ins><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><span class=3D"cx">     const Color color(style().visitedDependent=
Color(CSSPropertyColor));
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderMetercpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rMeter.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderMeter.cpp	2=
014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderMeter.cpp	2014-08-28 04:24:31 UT=
C (rev 173047)
</span><span class=3D"lines">@@ -54,7 +54,7 @@
</span><span class=3D"cx"> {
</span><span class=3D"cx">     RenderBox::updateLogicalWidth();
</span><span class=3D"cx">=20
</span><del>-    IntSize frameSize =3D theme().meterSizeForBounds(*this, =
pixelSnappedIntRect(frameRect()));
</del><ins>+    IntSize frameSize =3D theme().meterSizeForBounds(*this, s=
nappedIntRect(frameRect()));
</ins><span class=3D"cx">     setLogicalWidth(isHorizontalWritingMode() ?=
 frameSize.width() : frameSize.height());
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -67,7 +67,7 @@
</span><span class=3D"cx">         frame.setHeight(computedValues.m_exten=
t);
</span><span class=3D"cx">     else
</span><span class=3D"cx">         frame.setWidth(computedValues.m_extent=
);
</span><del>-    IntSize frameSize =3D theme().meterSizeForBounds(*this, =
pixelSnappedIntRect(frame));
</del><ins>+    IntSize frameSize =3D theme().meterSizeForBounds(*this, s=
nappedIntRect(frame));
</ins><span class=3D"cx">     computedValues.m_extent =3D isHorizontalWri=
tingMode() ? frameSize.height() : frameSize.width();
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderMultiColumnSetcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rMultiColumnSet.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderMultiColumn=
Set.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderMultiColumnSet.cpp	2014-08-28 04=
:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -614,7 +614,7 @@
</span><span class=3D"cx">                 LayoutUnit ruleRight =3D isHor=
izontalWritingMode() ? ruleLeft + ruleThickness : ruleLeft + contentWidth=
();
</span><span class=3D"cx">                 LayoutUnit ruleTop =3D isHoriz=
ontalWritingMode() ? paintOffset.y() + borderTop() + paddingTop() : paint=
Offset.y() + ruleLogicalLeft - ruleThickness / 2 + ruleAdd;
</span><span class=3D"cx">                 LayoutUnit ruleBottom =3D isHo=
rizontalWritingMode() ? ruleTop + contentHeight() : ruleTop + ruleThickne=
ss;
</span><del>-                IntRect pixelSnappedRuleRect =3D pixelSnappe=
dIntRectFromEdges(ruleLeft, ruleTop, ruleRight, ruleBottom);
</del><ins>+                IntRect pixelSnappedRuleRect =3D snappedIntRe=
ctFromEdges(ruleLeft, ruleTop, ruleRight, ruleBottom);
</ins><span class=3D"cx">                 drawLineForBoxSide(paintInfo.co=
ntext, pixelSnappedRuleRect.x(), pixelSnappedRuleRect.y(), pixelSnappedRu=
leRect.maxX(), pixelSnappedRuleRect.maxY(), boxSide, ruleColor, ruleStyle=
, 0, 0, antialias);
</span><span class=3D"cx">             }
</span><span class=3D"cx">            =20
</span><span class=3D"lines">@@ -645,7 +645,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">         for (unsigned i =3D 1; i &lt; colCount=
; i++) {
</span><span class=3D"cx">             ruleRect.move(step);
</span><del>-            IntRect pixelSnappedRuleRect =3D pixelSnappedInt=
Rect(ruleRect);
</del><ins>+            IntRect pixelSnappedRuleRect =3D snappedIntRect(r=
uleRect);
</ins><span class=3D"cx">             drawLineForBoxSide(paintInfo.contex=
t, pixelSnappedRuleRect.x(), pixelSnappedRuleRect.y(), pixelSnappedRuleRe=
ct.maxX(), pixelSnappedRuleRect.maxY(), boxSide, ruleColor, ruleStyle, 0,=
 0, antialias);
</span><span class=3D"cx">         }
</span><span class=3D"cx">     }
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderObjectcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rObject.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderObject.cpp	=
2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp	2014-08-28 04:24:31 U=
TC (rev 173047)
</span><span class=3D"lines">@@ -807,13 +807,13 @@
</span><span class=3D"cx">                 switch (side) {
</span><span class=3D"cx">                     case BSTop:
</span><span class=3D"cx">                     case BSBottom:
</span><del>-                        graphicsContext-&gt;drawRect(pixelSn=
appedForPainting(x1, y1, length, thirdOfThickness, deviceScaleFactor));
-                        graphicsContext-&gt;drawRect(pixelSnappedForPain=
ting(x1, y2 - thirdOfThickness, length, thirdOfThickness, deviceScaleFact=
or));
</del><ins>+                        graphicsContext-&gt;drawRect(snapRect=
ToDevicePixels(x1, y1, length, thirdOfThickness, deviceScaleFactor));
+                        graphicsContext-&gt;drawRect(snapRectToDevicePix=
els(x1, y2 - thirdOfThickness, length, thirdOfThickness, deviceScaleFacto=
r));
</ins><span class=3D"cx">                         break;
</span><span class=3D"cx">                     case BSLeft:
</span><span class=3D"cx">                     case BSRight:
</span><del>-                        graphicsContext-&gt;drawRect(pixelSn=
appedForPainting(x1, y1, thirdOfThickness, length, deviceScaleFactor));
-                        graphicsContext-&gt;drawRect(pixelSnappedForPain=
ting(x2 - thirdOfThickness, y1, thirdOfThickness, length, deviceScaleFact=
or));
</del><ins>+                        graphicsContext-&gt;drawRect(snapRect=
ToDevicePixels(x1, y1, thirdOfThickness, length, deviceScaleFactor));
+                        graphicsContext-&gt;drawRect(snapRectToDevicePix=
els(x2 - thirdOfThickness, y1, thirdOfThickness, length, deviceScaleFacto=
r));
</ins><span class=3D"cx">                         break;
</span><span class=3D"cx">                 }
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -834,38 +834,38 @@
</span><span class=3D"cx">                 FloatRect paintBorderRect;
</span><span class=3D"cx">                 switch (side) {
</span><span class=3D"cx">                     case BSTop:
</span><del>-                        paintBorderRect =3D pixelSnappedForP=
ainting(LayoutRect(x1 + mitreOffset1, y1, (x2 - mitreOffset3) - (x1 + mit=
reOffset1), thirdOfThickness), deviceScaleFactor);
</del><ins>+                        paintBorderRect =3D snapRectToDeviceP=
ixels(LayoutRect(x1 + mitreOffset1, y1, (x2 - mitreOffset3) - (x1 + mitre=
Offset1), thirdOfThickness), deviceScaleFactor);
</ins><span class=3D"cx">                         drawLineForBoxSide(grap=
hicsContext, paintBorderRect.x(), paintBorderRect.y(), paintBorderRect.ma=
xX(), paintBorderRect.maxY(), side, color, SOLID,
</span><span class=3D"cx">                             adjacent1BigThird,=
 adjacent2BigThird, antialias);
</span><span class=3D"cx">=20
</span><del>-                        paintBorderRect =3D pixelSnappedForP=
ainting(LayoutRect(x1 + mitreOffset2, y2 - thirdOfThickness, (x2 - mitreO=
ffset4) - (x1 + mitreOffset2), thirdOfThickness), deviceScaleFactor);
</del><ins>+                        paintBorderRect =3D snapRectToDeviceP=
ixels(LayoutRect(x1 + mitreOffset2, y2 - thirdOfThickness, (x2 - mitreOff=
set4) - (x1 + mitreOffset2), thirdOfThickness), deviceScaleFactor);
</ins><span class=3D"cx">                         drawLineForBoxSide(grap=
hicsContext, paintBorderRect.x(), paintBorderRect.y(), paintBorderRect.ma=
xX(), paintBorderRect.maxY(), side, color, SOLID,
</span><span class=3D"cx">                             adjacent1BigThird,=
 adjacent2BigThird, antialias);
</span><span class=3D"cx">                         break;
</span><span class=3D"cx">                     case BSLeft:
</span><del>-                        paintBorderRect =3D pixelSnappedForP=
ainting(LayoutRect(x1, y1 + mitreOffset1, thirdOfThickness, (y2 - mitreOf=
fset3) - (y1 + mitreOffset1)), deviceScaleFactor);
</del><ins>+                        paintBorderRect =3D snapRectToDeviceP=
ixels(LayoutRect(x1, y1 + mitreOffset1, thirdOfThickness, (y2 - mitreOffs=
et3) - (y1 + mitreOffset1)), deviceScaleFactor);
</ins><span class=3D"cx">                         drawLineForBoxSide(grap=
hicsContext, paintBorderRect.x(), paintBorderRect.y(), paintBorderRect.ma=
xX(), paintBorderRect.maxY(), side, color, SOLID,
</span><span class=3D"cx">                             adjacent1BigThird,=
 adjacent2BigThird, antialias);
</span><span class=3D"cx">=20
</span><del>-                        paintBorderRect =3D pixelSnappedForP=
ainting(LayoutRect(x2 - thirdOfThickness, y1 + mitreOffset2, thirdOfThick=
ness, (y2 - mitreOffset4) - (y1 + mitreOffset2)), deviceScaleFactor);
</del><ins>+                        paintBorderRect =3D snapRectToDeviceP=
ixels(LayoutRect(x2 - thirdOfThickness, y1 + mitreOffset2, thirdOfThickne=
ss, (y2 - mitreOffset4) - (y1 + mitreOffset2)), deviceScaleFactor);
</ins><span class=3D"cx">                         drawLineForBoxSide(grap=
hicsContext, paintBorderRect.x(), paintBorderRect.y(), paintBorderRect.ma=
xX(), paintBorderRect.maxY(), side, color, SOLID,
</span><span class=3D"cx">                             adjacent1BigThird,=
 adjacent2BigThird, antialias);
</span><span class=3D"cx">                         break;
</span><span class=3D"cx">                     case BSBottom:
</span><del>-                        paintBorderRect =3D pixelSnappedForP=
ainting(LayoutRect(x1 + mitreOffset2, y1, (x2 - mitreOffset4) - (x1 + mit=
reOffset2), thirdOfThickness), deviceScaleFactor);
</del><ins>+                        paintBorderRect =3D snapRectToDeviceP=
ixels(LayoutRect(x1 + mitreOffset2, y1, (x2 - mitreOffset4) - (x1 + mitre=
Offset2), thirdOfThickness), deviceScaleFactor);
</ins><span class=3D"cx">                         drawLineForBoxSide(grap=
hicsContext, paintBorderRect.x(), paintBorderRect.y(), paintBorderRect.ma=
xX(), paintBorderRect.maxY(), side, color, SOLID,
</span><span class=3D"cx">                             adjacent1BigThird,=
 adjacent2BigThird, antialias);
</span><span class=3D"cx">=20
</span><del>-                        paintBorderRect =3D pixelSnappedForP=
ainting(LayoutRect(x1 + mitreOffset1, y2 - thirdOfThickness, (x2 - mitreO=
ffset3) - (x1 + mitreOffset1), thirdOfThickness), deviceScaleFactor);
</del><ins>+                        paintBorderRect =3D snapRectToDeviceP=
ixels(LayoutRect(x1 + mitreOffset1, y2 - thirdOfThickness, (x2 - mitreOff=
set3) - (x1 + mitreOffset1), thirdOfThickness), deviceScaleFactor);
</ins><span class=3D"cx">                         drawLineForBoxSide(grap=
hicsContext, paintBorderRect.x(), paintBorderRect.y(), paintBorderRect.ma=
xX(), paintBorderRect.maxY(), side, color, SOLID,
</span><span class=3D"cx">                             adjacent1BigThird,=
 adjacent2BigThird, antialias);
</span><span class=3D"cx">                         break;
</span><span class=3D"cx">                     case BSRight:
</span><del>-                        paintBorderRect =3D pixelSnappedForP=
ainting(LayoutRect(x1, y1 + mitreOffset2, thirdOfThickness, (y2 - mitreOf=
fset4) - (y1 + mitreOffset2)), deviceScaleFactor);
</del><ins>+                        paintBorderRect =3D snapRectToDeviceP=
ixels(LayoutRect(x1, y1 + mitreOffset2, thirdOfThickness, (y2 - mitreOffs=
et4) - (y1 + mitreOffset2)), deviceScaleFactor);
</ins><span class=3D"cx">                         drawLineForBoxSide(grap=
hicsContext, paintBorderRect.x(), paintBorderRect.y(), paintBorderRect.ma=
xX(), paintBorderRect.maxY(), side, color, SOLID,
</span><span class=3D"cx">                             adjacent1BigThird,=
 adjacent2BigThird, antialias);
</span><span class=3D"cx">=20
</span><del>-                        paintBorderRect =3D pixelSnappedForP=
ainting(LayoutRect(x2 - thirdOfThickness, y1 + mitreOffset1, thirdOfThick=
ness, (y2 - mitreOffset3) - (y1 + mitreOffset1)), deviceScaleFactor);
</del><ins>+                        paintBorderRect =3D snapRectToDeviceP=
ixels(LayoutRect(x2 - thirdOfThickness, y1 + mitreOffset1, thirdOfThickne=
ss, (y2 - mitreOffset3) - (y1 + mitreOffset1)), deviceScaleFactor);
</ins><span class=3D"cx">                         drawLineForBoxSide(grap=
hicsContext, paintBorderRect.x(), paintBorderRect.y(), paintBorderRect.ma=
xX(), paintBorderRect.maxY(), side, color, SOLID,
</span><span class=3D"cx">                             adjacent1BigThird,=
 adjacent2BigThird, antialias);
</span><span class=3D"cx">                         break;
</span><span class=3D"lines">@@ -959,7 +959,7 @@
</span><span class=3D"cx">                 graphicsContext-&gt;setFillCol=
or(color, style.colorSpace());
</span><span class=3D"cx">                 bool wasAntialiased =3D graphi=
csContext-&gt;shouldAntialias();
</span><span class=3D"cx">                 graphicsContext-&gt;setShouldA=
ntialias(antialias);
</span><del>-                graphicsContext-&gt;drawRect(pixelSnappedFor=
Painting(x1, y1, x2 - x1, y2 - y1, deviceScaleFactor));
</del><ins>+                graphicsContext-&gt;drawRect(snapRectToDevice=
Pixels(x1, y1, x2 - x1, y2 - y1, deviceScaleFactor));
</ins><span class=3D"cx">                 graphicsContext-&gt;setShouldAn=
tialias(wasAntialiased);
</span><span class=3D"cx">                 graphicsContext-&gt;setStrokeS=
tyle(oldStrokeStyle);
</span><span class=3D"cx">                 return;
</span><span class=3D"lines">@@ -1038,7 +1038,7 @@
</span><span class=3D"cx">     const AtomicString&amp; href =3D toElement=
(n)-&gt;getAttribute(hrefAttr);
</span><span class=3D"cx">     if (href.isNull())
</span><span class=3D"cx">         return;
</span><del>-    paintInfo.context-&gt;setURLForRect(n-&gt;document().com=
pleteURL(href), pixelSnappedIntRect(urlRect));
</del><ins>+    paintInfo.context-&gt;setURLForRect(n-&gt;document().comp=
leteURL(href), snappedIntRect(urlRect));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderObject::paintOutline(PaintInfo&amp;=
 paintInfo, const LayoutRect&amp; paintRect)
</span><span class=3D"lines">@@ -1061,10 +1061,10 @@
</span><span class=3D"cx">     if (styleToUse.outlineStyleIsAuto() || sty=
leToUse.outlineStyle() =3D=3D BNONE)
</span><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span><del>-    IntRect inner =3D pixelSnappedIntRect(paintRect);
</del><ins>+    IntRect inner =3D snappedIntRect(paintRect);
</ins><span class=3D"cx">     inner.inflate(outlineOffset);
</span><span class=3D"cx">=20
</span><del>-    IntRect outer =3D pixelSnappedIntRect(inner);
</del><ins>+    IntRect outer =3D snappedIntRect(inner);
</ins><span class=3D"cx">     outer.inflate(outlineWidth);
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // FIXME: This prevents outlines from pain=
ting inside the object. See bug 12042
</span><span class=3D"lines">@@ -1166,7 +1166,7 @@
</span><span class=3D"cx">     LayoutRect result =3D rects[0];
</span><span class=3D"cx">     for (size_t i =3D 1; i &lt; n; ++i)
</span><span class=3D"cx">         result.unite(rects[i]);
</span><del>-    return pixelSnappedIntRect(result);
</del><ins>+    return snappedIntRect(result);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderObject::absoluteFocusRingQuads(Vect=
or&lt;FloatQuad&gt;&amp; quads)
</span><span class=3D"lines">@@ -1288,7 +1288,7 @@
</span><span class=3D"cx">         ASSERT(repaintContainer =3D=3D &amp;v)=
;
</span><span class=3D"cx">         bool viewHasCompositedLayer =3D v.hasL=
ayer() &amp;&amp; v.layer()-&gt;isComposited();
</span><span class=3D"cx">         if (!viewHasCompositedLayer || v.layer=
()-&gt;backing()-&gt;paintsIntoWindow()) {
</span><del>-            v.repaintViewRectangle(viewHasCompositedLayer &a=
mp;&amp; v.layer()-&gt;transform() ? LayoutRect(v.layer()-&gt;transform()=
-&gt;mapRect(pixelSnappedForPainting(r, document().deviceScaleFactor())))=
 : r);
</del><ins>+            v.repaintViewRectangle(viewHasCompositedLayer &am=
p;&amp; v.layer()-&gt;transform() ? LayoutRect(v.layer()-&gt;transform()-=
&gt;mapRect(snapRectToDevicePixels(r, document().deviceScaleFactor()))) :=
 r);
</ins><span class=3D"cx">             return;
</span><span class=3D"cx">         }
</span><span class=3D"cx">     }
</span><span class=3D"lines">@@ -1356,16 +1356,16 @@
</span><span class=3D"cx">     // there is, then we should not allow pain=
ting to clip to the layer size.
</span><span class=3D"cx">     if (isRoot() || isBody()) {
</span><span class=3D"cx">         shouldClipToLayer =3D !view-&gt;frameV=
iew().hasExtendedBackgroundRectForPainting();
</span><del>-        repaintRect =3D pixelSnappedIntRect(view-&gt;backgro=
undRect(view));
</del><ins>+        repaintRect =3D snappedIntRect(view-&gt;backgroundRec=
t(view));
</ins><span class=3D"cx">     } else
</span><del>-        repaintRect =3D pixelSnappedIntRect(clippedOverflowR=
ectForRepaint(repaintContainer));
</del><ins>+        repaintRect =3D snappedIntRect(clippedOverflowRectFor=
Repaint(repaintContainer));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     repaintUsingContainer(repaintContainer, re=
paintRect, shouldClipToLayer);
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> IntRect RenderObject::pixelSnappedAbsoluteClip=
pedOverflowRect() const
</span><span class=3D"cx"> {
</span><del>-    return pixelSnappedIntRect(absoluteClippedOverflowRect()=
);
</del><ins>+    return snappedIntRect(absoluteClippedOverflowRect());
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> bool RenderObject::checkForRepaintDuringLayout=
() const
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderProgresscpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rProgress.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderProgress.cp=
p	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderProgress.cpp	2014-08-28 04:24:31=
 UTC (rev 173047)
</span><span class=3D"lines">@@ -66,7 +66,7 @@
</span><span class=3D"cx">         frame.setHeight(computedValues.m_exten=
t);
</span><span class=3D"cx">     else
</span><span class=3D"cx">         frame.setWidth(computedValues.m_extent=
);
</span><del>-    IntSize frameSize =3D theme().progressBarRectForBounds(*=
this, pixelSnappedIntRect(frame)).size();
</del><ins>+    IntSize frameSize =3D theme().progressBarRectForBounds(*t=
his, snappedIntRect(frame)).size();
</ins><span class=3D"cx">     computedValues.m_extent =3D isHorizontalWri=
tingMode() ? frameSize.height() : frameSize.width();
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderReplacedcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rReplaced.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderReplaced.cp=
p	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderReplaced.cpp	2014-08-28 04:24:31=
 UTC (rev 173047)
</span><span class=3D"lines">@@ -189,7 +189,7 @@
</span><span class=3D"cx">     if (drawSelectionTint) {
</span><span class=3D"cx">         LayoutRect selectionPaintingRect =3D l=
ocalSelectionRect();
</span><span class=3D"cx">         selectionPaintingRect.moveBy(adjustedP=
aintOffset);
</span><del>-        paintInfo.context-&gt;fillRect(pixelSnappedIntRect(s=
electionPaintingRect), selectionBackgroundColor(), style().colorSpace());
</del><ins>+        paintInfo.context-&gt;fillRect(snappedIntRect(selecti=
onPaintingRect), selectionBackgroundColor(), style().colorSpace());
</ins><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderScrollbarPartcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rScrollbarPart.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderScrollbarPa=
rt.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderScrollbarPart.cpp	2014-08-28 04:=
24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -175,7 +175,7 @@
</span><span class=3D"cx">     }
</span><span class=3D"cx">    =20
</span><span class=3D"cx">     // Now do the paint.
</span><del>-    PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect=
(rect), PaintPhaseBlockBackground, PaintBehaviorNormal);
</del><ins>+    PaintInfo paintInfo(graphicsContext, snappedIntRect(rect)=
, PaintPhaseBlockBackground, PaintBehaviorNormal);
</ins><span class=3D"cx">     paint(paintInfo, paintOffset);
</span><span class=3D"cx">     paintInfo.phase =3D PaintPhaseChildBlockBa=
ckgrounds;
</span><span class=3D"cx">     paint(paintInfo, paintOffset);
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderSearchFieldcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rSearchField.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderSearchField=
.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderSearchField.cpp	2014-08-28 04:24=
:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -130,7 +130,7 @@
</span><span class=3D"cx">         m_searchPopup-&gt;saveRecentSearches(n=
ame, m_recentSearches);
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><del>-    m_searchPopup-&gt;popupMenu()-&gt;show(pixelSnappedIntRe=
ct(absoluteBoundingBoxRect()), &amp;view().frameView(), -1);
</del><ins>+    m_searchPopup-&gt;popupMenu()-&gt;show(snappedIntRect(abs=
oluteBoundingBoxRect()), &amp;view().frameView(), -1);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderSearchField::hidePopup()
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderSnapshottedPlugIncpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rSnapshottedPlugIn.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderSnapshotted=
PlugIn.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp	2014-08-28=
 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -131,7 +131,7 @@
</span><span class=3D"cx">     contentLocation.move(borderLeft() + paddin=
gLeft(), borderTop() + paddingTop());
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect rect(contentLocation, contentSi=
ze);
</span><del>-    IntRect alignedRect =3D pixelSnappedIntRect(rect);
</del><ins>+    IntRect alignedRect =3D snappedIntRect(rect);
</ins><span class=3D"cx">     if (alignedRect.width() &lt;=3D 0 || aligne=
dRect.height() &lt;=3D 0)
</span><span class=3D"cx">         return;
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderTableCellcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rTableCell.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderTableCell.c=
pp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderTableCell.cpp	2014-08-28 04:24:3=
1 UTC (rev 173047)
</span><span class=3D"lines">@@ -1169,7 +1169,7 @@
</span><span class=3D"cx">     int leftWidth =3D leftVal.width();
</span><span class=3D"cx">     int rightWidth =3D rightVal.width();
</span><span class=3D"cx">=20
</span><del>-    IntRect borderRect =3D pixelSnappedIntRect(paintRect.x()=
 - leftWidth / 2,
</del><ins>+    IntRect borderRect =3D snappedIntRect(paintRect.x() - lef=
tWidth / 2,
</ins><span class=3D"cx">         paintRect.y() - topWidth / 2,
</span><span class=3D"cx">         paintRect.width() + leftWidth / 2 + (r=
ightWidth + 1) / 2,
</span><span class=3D"cx">         paintRect.height() + topWidth / 2 + (b=
ottomWidth + 1) / 2);
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderTextControlcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rTextControl.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderTextControl=
.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderTextControl.cpp	2014-08-28 04:24=
:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -235,7 +235,7 @@
</span><span class=3D"cx"> void RenderTextControl::addFocusRingRects(Vect=
or&lt;IntRect&gt;&amp; rects, const LayoutPoint&amp; additionalOffset, co=
nst RenderLayerModelObject*)
</span><span class=3D"cx"> {
</span><span class=3D"cx">     if (!size().isEmpty())
</span><del>-        rects.append(pixelSnappedIntRect(additionalOffset, s=
ize()));
</del><ins>+        rects.append(snappedIntRect(additionalOffset, size())=
);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> RenderObject* RenderTextControl::layoutSpecial=
ExcludedChild(bool relayoutChildren)
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderTextControlSingleLinecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rTextControlSingleLine.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderTextControl=
SingleLine.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp	2014-0=
8-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -84,7 +84,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">         // Convert the rect into the coords us=
ed for painting the content
</span><span class=3D"cx">         contentsRect.moveBy(paintOffset + loca=
tion());
</span><del>-        theme().paintCapsLockIndicator(*this, paintInfo, pix=
elSnappedIntRect(contentsRect));
</del><ins>+        theme().paintCapsLockIndicator(*this, paintInfo, snap=
pedIntRect(contentsRect));
</ins><span class=3D"cx">     }
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderThemecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rTheme.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderTheme.cpp	2=
014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderTheme.cpp	2014-08-28 04:24:31 UT=
C (rev 173047)
</span><span class=3D"lines">@@ -267,8 +267,8 @@
</span><span class=3D"cx">         return false;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     ControlPart part =3D o.style().appearance(=
);
</span><del>-    IntRect integralSnappedRect =3D pixelSnappedIntRect(r);
-    FloatRect devicePixelSnappedRect =3D pixelSnappedForPainting(r, o.do=
cument().deviceScaleFactor());
</del><ins>+    IntRect integralSnappedRect =3D snappedIntRect(r);
+    FloatRect devicePixelSnappedRect =3D snapRectToDevicePixels(r, o.doc=
ument().deviceScaleFactor());
</ins><span class=3D"cx">=20
</span><span class=3D"cx"> #if USE(NEW_THEME)
</span><span class=3D"cx">     switch (part) {
</span><span class=3D"lines">@@ -400,7 +400,7 @@
</span><span class=3D"cx">     UNUSED_PARAM(r);
</span><span class=3D"cx">     return o.style().appearance() !=3D NoContr=
olPart;
</span><span class=3D"cx"> #else
</span><del>-    FloatRect devicePixelSnappedRect =3D pixelSnappedForPain=
ting(r, o.document().deviceScaleFactor());
</del><ins>+    FloatRect devicePixelSnappedRect =3D snapRectToDevicePixe=
ls(r, o.document().deviceScaleFactor());
</ins><span class=3D"cx">     // Call the appropriate paint method based =
off the appearance value.
</span><span class=3D"cx">     switch (o.style().appearance()) {
</span><span class=3D"cx">     case TextFieldPart:
</span><span class=3D"lines">@@ -450,8 +450,8 @@
</span><span class=3D"cx">     if (paintInfo.context-&gt;paintingDisabled=
())
</span><span class=3D"cx">         return false;
</span><span class=3D"cx">=20
</span><del>-    IntRect integralSnappedRect =3D pixelSnappedIntRect(rect=
);
-    FloatRect devicePixelSnappedRect =3D pixelSnappedForPainting(rect, r=
enderer.document().deviceScaleFactor());
</del><ins>+    IntRect integralSnappedRect =3D snappedIntRect(rect);
+    FloatRect devicePixelSnappedRect =3D snapRectToDevicePixels(rect, re=
nderer.document().deviceScaleFactor());
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     // Call the appropriate paint method based=
 off the appearance value.
</span><span class=3D"cx">     switch (renderer.style().appearance()) {
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderThemeMacmm"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rThemeMac.mm (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderThemeMac.mm=
	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderThemeMac.mm	2014-08-28 04:24:31 =
UTC (rev 173047)
</span><span class=3D"lines">@@ -1838,7 +1838,7 @@
</span><span class=3D"cx">     contentLocation.move(renderBlock.borderLef=
t() + renderBlock.paddingLeft(), renderBlock.borderTop() + renderBlock.pa=
ddingTop());
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect rect(contentLocation, contentSi=
ze);
</span><del>-    IntRect alignedRect =3D pixelSnappedIntRect(rect);
</del><ins>+    IntRect alignedRect =3D snappedIntRect(rect);
</ins><span class=3D"cx">     if (alignedRect.width() &lt;=3D 0 || aligne=
dRect.height() &lt;=3D 0)
</span><span class=3D"cx">         return true;
</span><span class=3D"cx">=20
</span><span class=3D"lines">@@ -1884,7 +1884,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutSize pluginSize(plugInRenderer-&gt;c=
ontentWidth(), plugInRenderer-&gt;contentHeight());
</span><span class=3D"cx">     LayoutRect pluginRect(snapshotAbsPos, plug=
inSize);
</span><del>-    IntRect alignedPluginRect =3D pixelSnappedIntRect(plugin=
Rect);
</del><ins>+    IntRect alignedPluginRect =3D snappedIntRect(pluginRect);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     if (alignedPluginRect.width() &lt;=3D 0 ||=
 alignedPluginRect.height() &lt;=3D 0)
</span><span class=3D"cx">         return true;
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderTreeAsTextcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rTreeAsText.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderTreeAsText.=
cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderTreeAsText.cpp	2014-08-28 04:24:=
31 UTC (rev 173047)
</span><span class=3D"lines">@@ -587,10 +587,10 @@
</span><span class=3D"cx">                   const LayoutRect&amp; layerB=
ounds, const LayoutRect&amp; backgroundClipRect, const LayoutRect&amp; cl=
ipRect, const LayoutRect&amp; outlineClipRect,
</span><span class=3D"cx">                   LayerPaintPhase paintPhase =3D=
 LayerPaintPhaseAll, int indent =3D 0, RenderAsTextBehavior behavior =3D =
RenderAsTextBehaviorNormal)
</span><span class=3D"cx"> {
</span><del>-    IntRect adjustedLayoutBounds =3D pixelSnappedIntRect(lay=
erBounds);
-    IntRect adjustedBackgroundClipRect =3D pixelSnappedIntRect(backgroun=
dClipRect);
-    IntRect adjustedClipRect =3D pixelSnappedIntRect(clipRect);
-    IntRect adjustedOutlineClipRect =3D pixelSnappedIntRect(outlineClipR=
ect);
</del><ins>+    IntRect adjustedLayoutBounds =3D snappedIntRect(layerBoun=
ds);
+    IntRect adjustedBackgroundClipRect =3D snappedIntRect(backgroundClip=
Rect);
+    IntRect adjustedClipRect =3D snappedIntRect(clipRect);
+    IntRect adjustedOutlineClipRect =3D snappedIntRect(outlineClipRect);
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     writeIndent(ts, indent);
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderVideocpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rVideo.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderVideo.cpp	2=
014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderVideo.cpp	2014-08-28 04:24:31 UT=
C (rev 173047)
</span><span class=3D"lines">@@ -148,7 +148,7 @@
</span><span class=3D"cx">     if (videoElement().shouldDisplayPosterImag=
e())
</span><span class=3D"cx">         intrinsicSize =3D m_cachedImageSize;
</span><span class=3D"cx">=20
</span><del>-    return pixelSnappedIntRect(replacedContentRect(intrinsic=
Size));
</del><ins>+    return snappedIntRect(replacedContentRect(intrinsicSize))=
;
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> bool RenderVideo::shouldDisplayVideo() const
</span><span class=3D"lines">@@ -191,9 +191,9 @@
</span><span class=3D"cx">     if (displayingPoster)
</span><span class=3D"cx">         paintIntoRect(context, rect);
</span><span class=3D"cx">     else if (view().frameView().paintBehavior(=
) &amp; PaintBehaviorFlattenCompositingLayers)
</span><del>-        mediaPlayer-&gt;paintCurrentFrameInContext(context, =
pixelSnappedIntRect(rect));
</del><ins>+        mediaPlayer-&gt;paintCurrentFrameInContext(context, s=
nappedIntRect(rect));
</ins><span class=3D"cx">     else
</span><del>-        mediaPlayer-&gt;paint(context, pixelSnappedIntRect(r=
ect));
</del><ins>+        mediaPlayer-&gt;paint(context, snappedIntRect(rect));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderVideo::layout()
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderViewcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rView.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderView.cpp	20=
14-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderView.cpp	2014-08-28 04:24:31 UTC=
 (rev 173047)
</span><span class=3D"lines">@@ -635,7 +635,7 @@
</span><span class=3D"cx">         return;
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><del>-    frameView().addTrackedRepaintRect(pixelSnappedForPaintin=
g(repaintRect, document().deviceScaleFactor()));
</del><ins>+    frameView().addTrackedRepaintRect(snapRectToDevicePixels(=
repaintRect, document().deviceScaleFactor()));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     // FIXME: convert all repaint rect depende=
ncies to FloatRect.
</span><span class=3D"cx">     IntRect enclosingRect =3D enclosingIntRect=
(repaintRect);
</span><span class=3D"lines">@@ -707,7 +707,7 @@
</span><span class=3D"cx">        =20
</span><span class=3D"cx">     // Apply our transform if we have one (bec=
ause of full page zooming).
</span><span class=3D"cx">     if (!repaintContainer &amp;&amp; layer() &=
amp;&amp; layer()-&gt;transform())
</span><del>-        rect =3D LayoutRect(layer()-&gt;transform()-&gt;mapR=
ect(pixelSnappedForPainting(rect, document().deviceScaleFactor())));
</del><ins>+        rect =3D LayoutRect(layer()-&gt;transform()-&gt;mapRe=
ct(snapRectToDevicePixels(rect, document().deviceScaleFactor())));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> bool RenderView::isScrollableOrRubberbandable(=
) const
</span><span class=3D"lines">@@ -720,7 +720,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderView::absoluteRects(Vector&lt;IntRe=
ct&gt;&amp; rects, const LayoutPoint&amp; accumulatedOffset) const
</span><span class=3D"cx"> {
</span><del>-    rects.append(pixelSnappedIntRect(accumulatedOffset, laye=
r()-&gt;size()));
</del><ins>+    rects.append(snappedIntRect(accumulatedOffset, layer()-&g=
t;size()));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderView::absoluteQuads(Vector&lt;Float=
Quad&gt;&amp; quads, bool* wasFixed) const
</span><span class=3D"lines">@@ -750,7 +750,7 @@
</span><span class=3D"cx">         }
</span><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><del>-    return pixelSnappedIntRect(selRect);
</del><ins>+    return snappedIntRect(selRect);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> LayoutRect RenderView::subtreeSelectionBounds(=
const SelectionSubtreeRoot&amp; root, bool clipToVisibleContent) const
</span><span class=3D"lines">@@ -1130,7 +1130,7 @@
</span><span class=3D"cx"> {
</span><span class=3D"cx">     LayoutRect overflowRect(layoutOverflowRect=
());
</span><span class=3D"cx">     flipForWritingMode(overflowRect);
</span><del>-    return pixelSnappedIntRect(overflowRect);
</del><ins>+    return snappedIntRect(overflowRect);
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> bool RenderView::rootBackgroundIsEntirelyFixed=
() const
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderViewh"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rView.h (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderView.h	2014=
-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderView.h	2014-08-28 04:24:31 UTC (=
rev 173047)
</span><span class=3D"lines">@@ -218,7 +218,7 @@
</span><span class=3D"cx">     void removeRenderCounter() { ASSERT(m_rend=
erCounterCount &gt; 0); m_renderCounterCount--; }
</span><span class=3D"cx">     bool hasRenderCounters() { return m_render=
CounterCount; }
</span><span class=3D"cx">    =20
</span><del>-    IntRect pixelSnappedLayoutOverflowRect() const { return =
pixelSnappedIntRect(layoutOverflowRect()); }
</del><ins>+    IntRect pixelSnappedLayoutOverflowRect() const { return s=
nappedIntRect(layoutOverflowRect()); }
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     ImageQualityController&amp; imageQualityCo=
ntroller();
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingRenderWidgetcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Rende=
rWidget.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/RenderWidget.cpp	=
2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/RenderWidget.cpp	2014-08-28 04:24:31 U=
TC (rev 173047)
</span><span class=3D"lines">@@ -233,7 +233,7 @@
</span><span class=3D"cx">         paintInfo.context-&gt;translate(widget=
PaintOffset);
</span><span class=3D"cx">         paintRect.move(-widgetPaintOffset);
</span><span class=3D"cx">     }
</span><del>-    m_widget-&gt;paint(paintInfo.context, pixelSnappedIntRec=
t(paintRect));
</del><ins>+    m_widget-&gt;paint(paintInfo.context, snappedIntRect(pain=
tRect));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     if (!widgetPaintOffset.isZero())
</span><span class=3D"cx">         paintInfo.context-&gt;translate(-widge=
tPaintOffset);
</span><span class=3D"lines">@@ -291,7 +291,7 @@
</span><span class=3D"cx">     // Paint a partially transparent wash over=
 selected widgets.
</span><span class=3D"cx">     if (isSelected() &amp;&amp; !document().pr=
inting()) {
</span><span class=3D"cx">         // FIXME: selectionRect() is in absolu=
te, not painting coordinates.
</span><del>-        paintInfo.context-&gt;fillRect(pixelSnappedIntRect(s=
electionRect()), selectionBackgroundColor(), style().colorSpace());
</del><ins>+        paintInfo.context-&gt;fillRect(snappedIntRect(selecti=
onRect()), selectionBackgroundColor(), style().colorSpace());
</ins><span class=3D"cx">     }
</span><span class=3D"cx">=20
</span><span class=3D"cx">     if (hasLayer() &amp;&amp; layer()-&gt;canR=
esize())
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingSimpleLineLayoutFunctionscpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/Simpl=
eLineLayoutFunctions.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/SimpleLineLayoutF=
unctions.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp	2014-08-=
28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -49,7 +49,7 @@
</span><span class=3D"cx"> static void paintDebugBorders(GraphicsContext&=
amp; context, LayoutRect borderRect, const LayoutPoint&amp; paintOffset)
</span><span class=3D"cx"> {
</span><span class=3D"cx">     borderRect.moveBy(paintOffset);
</span><del>-    IntRect snappedRect =3D pixelSnappedIntRect(borderRect);
</del><ins>+    IntRect snappedRect =3D snappedIntRect(borderRect);
</ins><span class=3D"cx">     if (snappedRect.isEmpty())
</span><span class=3D"cx">         return;
</span><span class=3D"cx">     GraphicsContextStateSaver stateSaver(conte=
xt);
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingshapesShapecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/shape=
s/Shape.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/shapes/Shape.cpp	=
2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/shapes/Shape.cpp	2014-08-28 04:24:31 U=
TC (rev 173047)
</span><span class=3D"lines">@@ -176,8 +176,8 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx"> std::unique_ptr&lt;Shape&gt; Shape::createRast=
erShape(Image* image, float threshold, const LayoutRect&amp; imageR, cons=
t LayoutRect&amp; marginR, WritingMode writingMode, float margin)
</span><span class=3D"cx"> {
</span><del>-    IntRect imageRect =3D pixelSnappedIntRect(imageR);
-    IntRect marginRect =3D pixelSnappedIntRect(marginR);
</del><ins>+    IntRect imageRect =3D snappedIntRect(imageR);
+    IntRect marginRect =3D snappedIntRect(marginR);
</ins><span class=3D"cx">     auto intervals =3D std::make_unique&lt;Rast=
erShapeIntervals&gt;(marginRect.height(), -marginRect.y());
</span><span class=3D"cx">     std::unique_ptr&lt;ImageBuffer&gt; imageBu=
ffer =3D ImageBuffer::create(imageRect.size());
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingsvgRenderSVGModelObjectcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/R=
enderSVGModelObject.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/svg/RenderSVGMode=
lObject.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGModelObject.cpp	2014-08-2=
8 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -74,7 +74,7 @@
</span><span class=3D"cx">     adjustRectForOutlineAndShadow(box);
</span><span class=3D"cx">=20
</span><span class=3D"cx">     FloatQuad containerRelativeQuad =3D localT=
oContainerQuad(FloatRect(box), repaintContainer);
</span><del>-    return LayoutRect(pixelSnappedForPainting(LayoutRect(con=
tainerRelativeQuad.boundingBox()), document().deviceScaleFactor()));
</del><ins>+    return LayoutRect(snapRectToDevicePixels(LayoutRect(conta=
inerRelativeQuad.boundingBox()), document().deviceScaleFactor()));
</ins><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><span class=3D"cx"> void RenderSVGModelObject::absoluteRects(Vecto=
r&lt;IntRect&gt;&amp; rects, const LayoutPoint&amp; accumulatedOffset) co=
nst
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingsvgRenderSVGRootcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/R=
enderSVGRoot.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/svg/RenderSVGRoot=
.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp	2014-08-28 04:24=
:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -264,7 +264,7 @@
</span><span class=3D"cx">=20
</span><span class=3D"cx">     // Apply initial viewport clip
</span><span class=3D"cx">     if (shouldApplyViewportClip())
</span><del>-        childPaintInfo.context-&gt;clip(pixelSnappedIntRect(=
overflowClipRect(paintOffset, currentRenderNamedFlowFragment())));
</del><ins>+        childPaintInfo.context-&gt;clip(snappedIntRect(overfl=
owClipRect(paintOffset, currentRenderNamedFlowFragment())));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     // Convert from container offsets (html re=
nderers) to a relative transform (svg renderers).
</span><span class=3D"cx">     // Transform from our paint container's co=
ordinate system to our local coords.
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingsvgSVGInlineTextBoxcpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/svg/S=
VGInlineTextBox.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/svg/SVGInlineText=
Box.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.cpp	2014-08-28 04=
:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -129,7 +129,7 @@
</span><span class=3D"cx">     LayoutRect selectionRect =3D LayoutRect(te=
xtOrigin, LayoutSize(0, fragment.height * scalingFactor));
</span><span class=3D"cx">     TextRun run =3D constructTextRun(style, fr=
agment);
</span><span class=3D"cx">     scaledFont.adjustSelectionRectForText(run,=
 selectionRect, startPosition, endPosition);
</span><del>-    FloatRect snappedSelectionRect =3D directionalPixelSnapp=
edForPainting(selectionRect, renderer().document().deviceScaleFactor(), r=
un.ltr());
</del><ins>+    FloatRect snappedSelectionRect =3D snapRectToDevicePixels=
WithWritingDirection(selectionRect, renderer().document().deviceScaleFact=
or(), run.ltr());
</ins><span class=3D"cx">     if (scalingFactor =3D=3D 1)
</span><span class=3D"cx">         return snappedSelectionRect;
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebKitmacChangeLog"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (1=
73046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebKit/mac/ChangeLog	2014-08-28 03:=
45:35 UTC (rev 173046)
+++ trunk/Source/WebKit/mac/ChangeLog	2014-08-28 04:24:31 UTC (rev 173047=
)
</span><span class=3D"lines">@@ -1,3 +1,19 @@
</span><ins>+2014-08-27  Zalan Bujtas  &lt;zalan at apple.com&gt;
+
+        Subpixel layout: Rename LayoutRect's device pixel snapping funct=
ions.
+        https://bugs.webkit.org/show_bug.cgi?id=3D136319
+
+        Reviewed by Simon Fraser.
+
+        From pixelSnappedForPainting() to snapRectToDevicePixels() and=20
+        pixelSnappedIntRect*() to snappedIntRect*().
+
+        No change in functionality.
+
+        * WebView/WebView.mm:
+        (-[WebView _dashboardRegions]):
+        (-[WebView trackedRepaintRects]):
+
</ins><span class=3D"cx"> 2014-08-25  Maciej Stachowiak  &lt;mjs at apple.co=
m&gt;
</span><span class=3D"cx">=20
</span><span class=3D"cx">         Replace use of WKCopyCFLocalizationPre=
ferredName with NSLocale public API
</span></span></pre></div>
<a id=3D"trunkSourceWebKitmacWebViewWebViewmm"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebV=
iew.mm (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebKit/mac/WebView/WebView.mm	2014-=
08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm	2014-08-28 04:24:31 UTC (r=
ev 173047)
</span><span class=3D"lines">@@ -3060,7 +3060,7 @@
</span><span class=3D"cx">             [regionValues release];
</span><span class=3D"cx">         }
</span><span class=3D"cx">=20
</span><del>-        WebDashboardRegion *webRegion =3D [[WebDashboardRegi=
on alloc] initWithRect:pixelSnappedIntRect(region.bounds) clip:pixelSnapp=
edIntRect(region.clip) type:type];
</del><ins>+        WebDashboardRegion *webRegion =3D [[WebDashboardRegio=
n alloc] initWithRect:snappedIntRect(region.bounds) clip:snappedIntRect(r=
egion.clip) type:type];
</ins><span class=3D"cx">         [regionValues addObject:webRegion];
</span><span class=3D"cx">         [webRegion release];
</span><span class=3D"cx">     }
</span><span class=3D"lines">@@ -3913,7 +3913,7 @@
</span><span class=3D"cx">     NSMutableArray* rectsArray =3D [[NSMutable=
Array alloc] initWithCapacity:repaintRects.size()];
</span><span class=3D"cx">    =20
</span><span class=3D"cx">     for (unsigned i =3D 0; i &lt; repaintRects=
.size(); ++i)
</span><del>-        [rectsArray addObject:[NSValue valueWithRect:pixelSn=
appedIntRect(LayoutRect(repaintRects[i]))]];
</del><ins>+        [rectsArray addObject:[NSValue valueWithRect:snappedI=
ntRect(LayoutRect(repaintRects[i]))]];
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     return [rectsArray autorelease];
</span><span class=3D"cx"> }
</span></span></pre></div>
<a id=3D"trunkSourceWebKit2ChangeLog"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (1730=
46 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebKit2/ChangeLog	2014-08-28 03:45:=
35 UTC (rev 173046)
+++ trunk/Source/WebKit2/ChangeLog	2014-08-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -1,5 +1,24 @@
</span><span class=3D"cx"> 2014-08-27  Zalan Bujtas  &lt;zalan at apple.com&=
gt;
</span><span class=3D"cx">=20
</span><ins>+        Subpixel layout: Rename LayoutRect's device pixel sn=
apping functions.
+        https://bugs.webkit.org/show_bug.cgi?id=3D136319
+
+        Reviewed by Simon Fraser.
+
+        From pixelSnappedForPainting() to snapRectToDevicePixels() and=20
+        pixelSnappedIntRect*() to snappedIntRect*().
+
+        No change in functionality.
+
+        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
+        (WebKit::InjectedBundleNodeHandle::renderedImage):
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::snapshotNode):
+        * WebProcess/WebPage/mac/ServicesOverlayController.mm:
+        (WebKit::ServicesOverlayController::buildSelectionHighlight):
+
+2014-08-27  Zalan Bujtas  &lt;zalan at apple.com&gt;
+
</ins><span class=3D"cx">         Subpixel layout: Rename FloatPoint/Floa=
tRect device pixel snapping functions.
</span><span class=3D"cx">         https://bugs.webkit.org/show_bug.cgi?i=
d=3D136314
</span><span class=3D"cx">=20
</span></span></pre></div>
<a id=3D"trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleNodeH=
andlecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/Inje=
ctedBundle/DOM/InjectedBundleNodeHandle.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/D=
OM/InjectedBundleNodeHandle.cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNode=
Handle.cpp	2014-08-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -179,7 +179,7 @@
</span><span class=3D"cx">         return 0;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect topLevelRect;
</span><del>-    IntRect paintingRect =3D pixelSnappedIntRect(renderer-&g=
t;paintingRootRect(topLevelRect));
</del><ins>+    IntRect paintingRect =3D snappedIntRect(renderer-&gt;pain=
tingRootRect(topLevelRect));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     frameView-&gt;setNodeToDraw(m_node.get());
</span><span class=3D"cx">     RefPtr&lt;WebImage&gt; image =3D imageForR=
ect(frameView, paintingRect, options);
</span></span></pre></div>
<a id=3D"trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebP=
age/WebPage.cpp (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.=
cpp	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp	2014-08-28 04:24:=
31 UTC (rev 173047)
</span><span class=3D"lines">@@ -1705,7 +1705,7 @@
</span><span class=3D"cx">         return nullptr;
</span><span class=3D"cx">=20
</span><span class=3D"cx">     LayoutRect topLevelRect;
</span><del>-    IntRect snapshotRect =3D pixelSnappedIntRect(node.render=
er()-&gt;paintingRootRect(topLevelRect));
</del><ins>+    IntRect snapshotRect =3D snappedIntRect(node.renderer()-&=
gt;paintingRootRect(topLevelRect));
</ins><span class=3D"cx">=20
</span><span class=3D"cx">     double scaleFactor =3D 1;
</span><span class=3D"cx">     IntSize snapshotSize =3D snapshotRect.size=
();
</span></span></pre></div>
<a id=3D"trunkSourceWebKit2WebProcessWebPagemacServicesOverlayControllerm=
m"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebP=
age/mac/ServicesOverlayController.mm (173046 =3D> 173047)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/Serv=
icesOverlayController.mm	2014-08-28 03:45:35 UTC (rev 173046)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/ServicesOverlayController=
.mm	2014-08-28 04:24:31 UTC (rev 173047)
</span><span class=3D"lines">@@ -528,7 +528,7 @@
</span><span class=3D"cx">         FrameView* viewForRange =3D selectionR=
ange-&gt;ownerDocument().view();
</span><span class=3D"cx">=20
</span><span class=3D"cx">         for (auto&amp; rect : m_currentSelecti=
onRects) {
</span><del>-            IntRect currentRect =3D pixelSnappedIntRect(rect=
);
</del><ins>+            IntRect currentRect =3D snappedIntRect(rect);
</ins><span class=3D"cx">             currentRect.setLocation(mainFrameVi=
ew.windowToContents(viewForRange-&gt;contentsToWindow(currentRect.locatio=
n())));
</span><span class=3D"cx">             cgRects.append((CGRect)currentRect=
);
</span><span class=3D"cx">         }
</span></span></pre>
</div>
</div>

</body>
</html>


More information about the webkit-changes mailing list