Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2168)

Unified Diff: Source/web/tests/data/composited_selection_bounds_split_layer.html

Issue 454643002: Route selection bounds updates through WebLayerTreeView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revised Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/tests/data/composited_selection_bounds_split_layer.html
diff --git a/Source/web/tests/data/composited_selection_bounds_split_layer.html b/Source/web/tests/data/composited_selection_bounds_split_layer.html
new file mode 100644
index 0000000000000000000000000000000000000000..105278fad24a644b7c7cccfdd57a40eed2e5346f
--- /dev/null
+++ b/Source/web/tests/data/composited_selection_bounds_split_layer.html
@@ -0,0 +1,29 @@
+<style>
+ @font-face {
+ font-family: ahem;
+ src: url(Ahem.ttf);
+ }
+
+ * {
+ font-family: ahem;
+ }
+
+ .composited {
+ transform: translateZ(0);
+ }
+</style>
+<div id="layer1" class="composited">The quick brown fox</div>
+<div id="layer2" class="composited">jumped over the lazy dog.</div>
+<script>
+ var range = document.createRange();
+ var layer1 = document.getElementById("layer1");
+ var textNode1 = layer1.firstChild;
+ range.setStart(textNode1, 5);
+ var layer2 = document.getElementById("layer2");
+ var textNode2 = layer2.firstChild;
+ range.setEnd(textNode2, 10);
+ document.getSelection().addRange(range);
+
+ window.expectedResult = [layer1, 60, 0, 60, 12, layer2, 120, 0, 120, 12];
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698