Title: [94257] trunk/Source/WebKit2
- Revision
- 94257
- Author
- ander...@apple.com
- Date
- 2011-08-31 17:36:45 -0700 (Wed, 31 Aug 2011)
Log Message
Jagged text shown in find-in-page highlight
https://bugs.webkit.org/show_bug.cgi?id=67347
<rdar://problem/9870444>
Reviewed by Dan Bernstein.
When painting each text line in the find indicator, make sure to clip it against
the text rect and not paint the entire rect over and over.
* UIProcess/FindIndicator.cpp:
(WebKit::FindIndicator::draw):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (94256 => 94257)
--- trunk/Source/WebKit2/ChangeLog 2011-09-01 00:28:50 UTC (rev 94256)
+++ trunk/Source/WebKit2/ChangeLog 2011-09-01 00:36:45 UTC (rev 94257)
@@ -1,3 +1,17 @@
+2011-08-31 Anders Carlsson <ander...@apple.com>
+
+ Jagged text shown in find-in-page highlight
+ https://bugs.webkit.org/show_bug.cgi?id=67347
+ <rdar://problem/9870444>
+
+ Reviewed by Dan Bernstein.
+
+ When painting each text line in the find indicator, make sure to clip it against
+ the text rect and not paint the entire rect over and over.
+
+ * UIProcess/FindIndicator.cpp:
+ (WebKit::FindIndicator::draw):
+
2011-08-31 Beth Dakin <bda...@apple.com>
https://bugs.webkit.org/show_bug.cgi?id=67322
Modified: trunk/Source/WebKit2/UIProcess/FindIndicator.cpp (94256 => 94257)
--- trunk/Source/WebKit2/UIProcess/FindIndicator.cpp 2011-09-01 00:28:50 UTC (rev 94256)
+++ trunk/Source/WebKit2/UIProcess/FindIndicator.cpp 2011-09-01 00:36:45 UTC (rev 94257)
@@ -172,7 +172,9 @@
{
GraphicsContextStateSaver stateSaver(graphicsContext);
graphicsContext.translate(FloatSize(roundf(leftBorderThickness), roundf(topBorderThickness)));
- m_contentImage->paint(graphicsContext, m_contentImageScaleFactor, IntPoint(0, 0), m_contentImage->bounds());
+
+ IntRect contentImageRect = enclosingIntRect(m_textRectsInSelectionRectCoordinates[i]);
+ m_contentImage->paint(graphicsContext, m_contentImageScaleFactor, contentImageRect.location(), contentImageRect);
}
}
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes