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

Unified Diff: LayoutTests/paint/selection/invalidation-rect-includes-newline.html

Issue 1350973003: Invalidate line break selection rects when selected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Don't need redundant early-out for selection rect. Created 5 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
« no previous file with comments | « no previous file | LayoutTests/paint/selection/invalidation-rect-with-br-includes-newline.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/paint/selection/invalidation-rect-includes-newline.html
diff --git a/LayoutTests/paint/selection/invalidation-rect-includes-newline.html b/LayoutTests/paint/selection/invalidation-rect-includes-newline.html
index 0dd07e0d331e51287fddc3952b729e6ed048063a..5fed1477371ba78d2bf051bfb4c9682d8a7330d8 100644
--- a/LayoutTests/paint/selection/invalidation-rect-includes-newline.html
+++ b/LayoutTests/paint/selection/invalidation-rect-includes-newline.html
@@ -1,15 +1,11 @@
<!DOCTYPE html>
<script src="../../resources/ahem.js"></script>
<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/selection.js"></script>
<script>
// Selects two lines and expects a newline to be represented.
function repaintTest() {
- if (window.internals)
- window.internals.setSelectionPaintingWithoutSelectionGapsEnabled(true);
- var range = document.createRange();
- range.setStart(container, 0);
- range.setEnd(container, 1);
- window.getSelection().addRange(range);
+ selectRange(container, 0, container, 1);
};
window.onload = runRepaintTest;
</script>
« no previous file with comments | « no previous file | LayoutTests/paint/selection/invalidation-rect-with-br-includes-newline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698