<rdar://problem/7645569> REGRESSION (r51324): Incorrect marker rects for blocks that span multiple columns

Reviewed by Darin Adler.

* manual-tests/match-marker-rects.html: Added.
* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::paintTextMatchMarker): Use the text renderer rather
than its ancestor block for the local-to-absolute transformation.
(WebCore::InlineTextBox::computeRectForReplacementMarker): Ditto.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54901 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/manual-tests/match-marker-rects.html b/WebCore/manual-tests/match-marker-rects.html
new file mode 100644
index 0000000..d650965
--- /dev/null
+++ b/WebCore/manual-tests/match-marker-rects.html
@@ -0,0 +1,33 @@
+<style>
+    div {
+        height: 50px;
+        width: 110px;
+        margin: 10px 0;
+        padding: 10px;
+        border: solid black;
+        font-size: 25px;
+    }
+
+    div.columns {
+        -webkit-columns: 2;
+        -webkit-column-gap: 10px;
+    }
+
+    div.scroll {
+        overflow-y: scroll; 
+    }
+</style>
+<p>
+    In Safari, choose Edit > Find > Find, and type the strings &ldquo;xyz&rdquo;
+    and &ldquo;123&rdquo;. The white &ldquo;holes&rdquo; in the Find overlay
+    should line up with the matching text below.
+</p>
+<div class="columns">
+    <br>xyz
+</div>
+<div class="scroll" id="scroll">
+    <br><br>123<br><br>
+</div>
+<script>
+    document.getElementById("scroll").scrollTop = 100;
+</script>