Title: [187393] trunk/Source/WebCore
Revision
187393
Author
[email protected]
Date
2015-07-25 17:31:46 -0700 (Sat, 25 Jul 2015)

Log Message

Expose TextIndicator-backed snapshot and rect gathering on DOMNode
https://bugs.webkit.org/show_bug.cgi?id=147298
<rdar://problem/21905839>

Reviewed by Sam Weinig.

* bindings/objc/DOM.mm:
(-[DOMNode getPreviewSnapshotImage:andRects:]):
No need to multiply by device scale here.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (187392 => 187393)


--- trunk/Source/WebCore/ChangeLog	2015-07-25 23:28:18 UTC (rev 187392)
+++ trunk/Source/WebCore/ChangeLog	2015-07-26 00:31:46 UTC (rev 187393)
@@ -4,8 +4,20 @@
         https://bugs.webkit.org/show_bug.cgi?id=147298
         <rdar://problem/21905839>
 
+        Reviewed by Sam Weinig.
+
         * bindings/objc/DOM.mm:
         (-[DOMNode getPreviewSnapshotImage:andRects:]):
+        No need to multiply by device scale here.
+
+2015-07-25  Tim Horton  <[email protected]>
+
+        Expose TextIndicator-backed snapshot and rect gathering on DOMNode
+        https://bugs.webkit.org/show_bug.cgi?id=147298
+        <rdar://problem/21905839>
+
+        * bindings/objc/DOM.mm:
+        (-[DOMNode getPreviewSnapshotImage:andRects:]):
         * bindings/objc/DOMExtensions.h:
         * bindings/objc/DOMPrivate.h:
         Move this to a private header.

Modified: trunk/Source/WebCore/bindings/objc/DOM.mm (187392 => 187393)


--- trunk/Source/WebCore/bindings/objc/DOM.mm	2015-07-25 23:28:18 UTC (rev 187392)
+++ trunk/Source/WebCore/bindings/objc/DOM.mm	2015-07-26 00:31:46 UTC (rev 187393)
@@ -595,8 +595,7 @@
 
     Ref<Range> range = rangeOfContents(*coreNode);
 
-    float deviceScaleFactor = coreNode->document().deviceScaleFactor();
-    const float margin = 4 * deviceScaleFactor;
+    const float margin = 4;
     RefPtr<TextIndicator> textIndicator = TextIndicator::createWithRange(range, TextIndicatorPresentationTransition::None, margin);
 
     if (!textIndicator)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to