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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/text/empty-text-node-crash.html

Issue 1806263005: Do not crash when measuring empty SVG text nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.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 id="svg">
5 <g id="g"></g>
6 <text id="text">Fail</text>
7 </svg>
8 <script>
9 test(function() {
10 // Create an empty text node through the editing apis.
11 var oSelection=window.getSelection();
12 document.execCommand('SelectAll', false, false)
13 var oRange = oSelection.getRangeAt(0);
14 oRange.insertNode(g);
15 // Force the text length to be calculated.
16 text.getComputedTextLength();
17 svg.parentElement.removeChild(svg);
18 }, 'Empty text nodes should not crash.');
19 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698