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

Side by Side Diff: LayoutTests/svg/text/text-bbox-of-empty-after-change.html

Issue 1078193002: Clear LayoutSVGText's frame rect if no line boxes are produced (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/layout/svg/LayoutSVGText.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <svg height="0" font-size="100"><text></text></svg>
5 <script>
6 test(function() {
7 var text = document.querySelector('text');
8 assert_equals(text.getBBox().width, 0, 'before adding text content');
9 text.textContent = 'MMMMM';
10 assert_greater_than(text.getBBox().width, 0, 'after adding text content');
11 text.textContent = '';
12 assert_equals(text.getBBox().width, 0, 'after clearing text content');
13 }, 'Bounding box of <text> changes to empty when text content is changed to empt y.');
14 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/svg/LayoutSVGText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698