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

Side by Side Diff: LayoutTests/svg/filters/feColorMatrix-setAttribute-crash1.html

Issue 1087283002: Rework the checks for too-few values in feColorMatrix filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Correct patch 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function changeValues() {
6 document.getElementById('color').setAttribute('values', '1');
7 if (window.testRunner) {
8 testRunner.notifyDone();
9 }
10 }
11
12 onload = function() {
13 if (window.testRunner) {
14 testRunner.waitUntilDone();
15 }
16 setTimeout(changeValues, 100);
pdr. 2015/04/15 18:34:22 What's this timer waiting on?
fs 2015/04/15 22:07:27 For SVGFEColorMatrixElement::build to be called I
Stephen Chennney 2015/04/16 18:12:19 Yes, a paint is needed. In fact, 2 paints are need
Stephen Chennney 2015/04/16 18:12:19 Yes. But I found the way to make it happen.
17 }
18 </script>
19 </head>
20 <body>
21 <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="100" height="100" fil ter="url(#MyFilter)" version="1.1">
22 <defs>
23 <filter id="MyFilter">
24 <fecolormatrix id="color" type="matrix"></fecolormatrix>
25 </filter>
26 </defs>
27 </svg>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGFEColorMatrixElement.cpp » ('j') | Source/platform/graphics/filters/FEColorMatrix.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698