Changeset 107323 in webkit
- Timestamp:
- Feb 9, 2012, 5:24:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/subpixellayout/Source/WebCore/rendering/RenderLayer.cpp
r107311 r107323 1863 1863 bool hasResizer = renderer()->style()->resize() != RESIZE_NONE; 1864 1864 if ((hasHorizontalBar && hasVerticalBar) || (hasResizer && (hasHorizontalBar || hasVerticalBar))) 1865 return cornerRect(this, enclosingIntRect(renderBox()->borderBoxRect()));1865 return cornerRect(this, pixelSnappedIntRect(renderBox()->borderBoxRect())); 1866 1866 return IntRect(); 1867 1867 } … … 1882 1882 IntRect scrollCornerAndResizer = scrollCornerRect(); 1883 1883 if (scrollCornerAndResizer.isEmpty()) 1884 scrollCornerAndResizer = resizerCornerRect(this, enclosingIntRect(box->borderBoxRect()));1884 scrollCornerAndResizer = resizerCornerRect(this, pixelSnappedIntRect(box->borderBoxRect())); 1885 1885 return scrollCornerAndResizer; 1886 1886 } … … 2542 2542 ASSERT(box); 2543 2543 2544 IntRect absRect = resizerCornerRect(this, enclosingIntRect(box->borderBoxRect()));2544 IntRect absRect = resizerCornerRect(this, pixelSnappedIntRect(box->borderBoxRect())); 2545 2545 absRect.moveBy(paintOffset); 2546 2546 if (!absRect.intersects(damageRect)) … … 2597 2597 IntRect resizeControlRect; 2598 2598 if (renderer()->style()->resize() != RESIZE_NONE) { 2599 resizeControlRect = resizerCornerRect(this, enclosingIntRect(box->borderBoxRect()));2599 resizeControlRect = resizerCornerRect(this, pixelSnappedIntRect(box->borderBoxRect())); 2600 2600 if (resizeControlRect.contains(localPoint)) 2601 2601 return true; … … 2675 2675 return; 2676 2676 context->save(); 2677 context->clip( enclosingIntRect(clipRect.rect()));2677 context->clip(pixelSnappedIntRect(clipRect.rect())); 2678 2678 2679 2679 if (!clipRect.hasRadius()) … … 3142 3142 IntRect hitTestArea = renderer()->view()->documentRect(); 3143 3143 if (!request.ignoreClipping()) 3144 hitTestArea.intersect( enclosingIntRect(frameVisibleRect(renderer())));3144 hitTestArea.intersect(pixelSnappedIntRect(frameVisibleRect(renderer()))); 3145 3145 3146 3146 RenderLayer* insideLayer = hitTestLayer(this, 0, request, result, hitTestArea, result.point(), false); … … 4299 4299 view->repaintViewRectangle(absRect); 4300 4300 } else 4301 backing()->setContentsNeedDisplayInRect( enclosingIntRect(r));4301 backing()->setContentsNeedDisplayInRect(pixelSnappedIntRect(r)); 4302 4302 } 4303 4303
Note:
See TracChangeset
for help on using the changeset viewer.