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

Unified Diff: LayoutTests/fast/text/international/repaint-glyph-bounds-expected.html

Issue 205553003: Invalidation not taking glyph bounds into account on HarfBuzz path (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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: LayoutTests/fast/text/international/repaint-glyph-bounds-expected.html
diff --git a/LayoutTests/fast/text/international/repaint-glyph-bounds-expected.html b/LayoutTests/fast/text/international/repaint-glyph-bounds-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..f12a9b279fde6eaad243dce4fa4784229c70c701
--- /dev/null
+++ b/LayoutTests/fast/text/international/repaint-glyph-bounds-expected.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <style>
+ #test {
+ font-family: arial;
+ font-size: 300%;
+ }
+ </style>
+ </head>
+ <body>
+ <section id="test">
+ بِِِِِِِِِِِِِِِِِِِِِِِِِِِِِِِا<br><span>test 1</span><br><span>test 2</span>
+ </section>
+ <section>
+ <p>
+ Tests that the glyph overflow rect, used for repaint, is
+ correctly computed. After selecting and unselecting either
+ <code>test</code> line above the harakat from the first line are
+ correctly repainted.
+ </p>
+ </section>
+ <script>
+ var testElements = document.getElementById('test').
+ getElementsByTagName('span');
+ var text = testElements[1].firstChild;
+ window.getSelection().setBaseAndExtent(text, 3, text, text.length);
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/fast/text/international/repaint-glyph-bounds.html ('k') | Source/platform/fonts/harfbuzz/FontHarfBuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698