Title: [145038] trunk/Source/WebCore
- Revision
- 145038
- Author
- [email protected]
- Date
- 2013-03-06 21:55:29 -0800 (Wed, 06 Mar 2013)
Log Message
TileCache debug minimap should fit inside the intersection of the visible rect and exposed rect
https://bugs.webkit.org/show_bug.cgi?id=111655
<rdar://problem/13355773>
Reviewed by Simon Fraser.
If content clips to the exposed rect, make the TileCache minimap fit in the exposed rect too.
* page/scrolling/mac/ScrollingCoordinatorMac.mm:
(WebCore::ScrollingCoordinatorMac::commitTreeState):
* platform/graphics/TiledBacking.h:
* platform/graphics/ca/mac/TileCache.mm:
(WebCore::TileCache::updateTileCoverageMap):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (145037 => 145038)
--- trunk/Source/WebCore/ChangeLog 2013-03-07 05:54:16 UTC (rev 145037)
+++ trunk/Source/WebCore/ChangeLog 2013-03-07 05:55:29 UTC (rev 145038)
@@ -1,3 +1,19 @@
+2013-03-06 Tim Horton <[email protected]>
+
+ TileCache debug minimap should fit inside the intersection of the visible rect and exposed rect
+ https://bugs.webkit.org/show_bug.cgi?id=111655
+ <rdar://problem/13355773>
+
+ Reviewed by Simon Fraser.
+
+ If content clips to the exposed rect, make the TileCache minimap fit in the exposed rect too.
+
+ * page/scrolling/mac/ScrollingCoordinatorMac.mm:
+ (WebCore::ScrollingCoordinatorMac::commitTreeState):
+ * platform/graphics/TiledBacking.h:
+ * platform/graphics/ca/mac/TileCache.mm:
+ (WebCore::TileCache::updateTileCoverageMap):
+
2013-03-06 Sheriff Bot <[email protected]>
Unreviewed, rolling out r144726.
Modified: trunk/Source/WebCore/platform/graphics/ca/mac/TileCache.mm (145037 => 145038)
--- trunk/Source/WebCore/platform/graphics/ca/mac/TileCache.mm 2013-03-07 05:54:16 UTC (rev 145037)
+++ trunk/Source/WebCore/platform/graphics/ca/mac/TileCache.mm 2013-03-07 05:55:29 UTC (rev 145038)
@@ -819,6 +819,10 @@
{
FloatRect containerBounds = bounds();
FloatRect visibleRect = this->visibleRect();
+
+ if (m_clipsToExposedRect)
+ visibleRect.intersect(m_exposedRect);
+
visibleRect.contract(4, 4); // Layer is positioned 2px from top and left edges.
float widthScale = 1;
@@ -834,6 +838,11 @@
BEGIN_BLOCK_OBJC_EXCEPTIONS
+ if (m_clipsToExposedRect)
+ [m_tiledScrollingIndicatorLayer.get() setPosition:m_exposedRect.location() + FloatPoint(2, 2)];
+ else
+ [m_tiledScrollingIndicatorLayer.get() setPosition:CGPointMake(2, 2)];
+
[m_tiledScrollingIndicatorLayer.get() setBounds:mapBounds];
[m_tiledScrollingIndicatorLayer.get() setNeedsDisplay];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes