Changeset 26740 in webkit
- Timestamp:
- Oct 18, 2007 12:30:13 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r26732 r26740 1 2007-10-18 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Maciej. 4 5 Test case for http://bugs.webkit.org/show_bug.cgi?id=15504 6 Landed -disabled as it's blocked by: 7 http://bugs.webkit.org/show_bug.cgi?id=15503 8 9 * fast/js/resources/js-test-post.js: add support for XHTML 10 * fast/js/resources/js-test-pre.js: add support for XHTML 11 * svg/dom/viewspec-parser.html-disabled: Added. 12 1 13 2007-10-17 Rob Buis <buis@kde.org> 2 14 -
trunk/LayoutTests/fast/js/resources/js-test-post.js
r11995 r26740 1 1 shouldBeTrue("successfullyParsed"); 2 debug('<br ><span class="pass">TEST COMPLETE</span>');2 debug('<br /><span class="pass">TEST COMPLETE</span>'); -
trunk/LayoutTests/fast/js/resources/js-test-pre.js
r26350 r26740 17 17 { 18 18 var span = document.createElement("span"); 19 span.innerHTML = msg + '<br>';20 document.getElementById("console").appendChild(span);19 document.getElementById("console").appendChild(span); // insert it first so XHTML knows the namespace 20 span.innerHTML = msg + '<br />'; 21 21 } 22 22 … … 28 28 function testPassed(msg) 29 29 { 30 debug('<span class="pass">PASS</span> ' + escapeHTML(msg) + '</span>');30 debug('<span><span class="pass">PASS</span> ' + escapeHTML(msg) + '</span>'); 31 31 } 32 32 33 33 function testFailed(msg) 34 34 { 35 debug('<span class="fail">FAIL</span> ' + escapeHTML(msg) + '</span>');35 debug('<span><span class="fail">FAIL</span> ' + escapeHTML(msg) + '</span>'); 36 36 } 37 37 -
trunk/WebCore/ChangeLog
r26732 r26740 1 2007-10-18 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Maciej. 4 5 Fix crashers in SVGViewSpec::parseViewSpec 6 http://bugs.webkit.org/show_bug.cgi?id=15504 7 8 Test is blocked by bug 15503, landed as: 9 * svg/dom/viewspec-parser.html-disabled 10 11 * bindings/scripts/CodeGeneratorObjC.pm: support classes where all parents are interfaces 12 * ksvg2/svg/SVGViewSpec.cpp: 13 (WebCore::SVGViewSpec::parseViewSpec): 14 * ksvg2/svg/SVGViewSpec.idl: Added. 15 1 16 2007-10-17 Rob Buis <buis@kde.org> 2 17 -
trunk/WebCore/bindings/scripts/CodeGeneratorObjC.pm
r26543 r26740 205 205 206 206 # Uppercase the first letter, while respecting WebKit style guidelines. 207 # E.g., xmlEncoding becomes XMLEncoding, but xmll lang becomes Xmllang.207 # E.g., xmlEncoding becomes XMLEncoding, but xmllang becomes Xmllang. 208 208 sub WK_ucfirst 209 209 { … … 387 387 if (IsProtocolType($firstParent)) { 388 388 push(@protocols, "DOM" . $firstParent); 389 if (!$isProtocol) { 390 $parent = "DOMObject"; 391 } 389 392 } else { 390 393 $parent = "DOM" . $firstParent; -
trunk/WebCore/ksvg2/svg/SVGViewSpec.cpp
r26543 r26740 100 100 return false; 101 101 102 if ( *currViewSpec != '(' )102 if (currViewSpec >= end || *currViewSpec != '(' ) 103 103 return false; 104 104 currViewSpec++; 105 105 106 while ( *currViewSpec != ')' && currViewSpec < end) {106 while (currViewSpec < end && *currViewSpec != ')') { 107 107 if (*currViewSpec == 'v') { 108 108 if (skipString(currViewSpec, end, viewBoxSpec, sizeof(viewBoxSpec) / sizeof(UChar))) { 109 if ( *currViewSpec != '(')109 if (currViewSpec >= end || *currViewSpec != '(') 110 110 return false; 111 111 currViewSpec++; … … 114 114 return false; 115 115 setViewBoxBaseValue(FloatRect(x, y, w, h)); 116 if ( *currViewSpec != ')')116 if (currViewSpec >= end || *currViewSpec != ')') 117 117 return false; 118 118 currViewSpec++; 119 119 } else if (skipString(currViewSpec, end, viewTargetSpec, sizeof(viewTargetSpec) / sizeof(UChar))) { 120 if ( *currViewSpec != '(')120 if (currViewSpec >= end || *currViewSpec != '(') 121 121 return false; 122 122 const UChar* viewTargetStart = ++currViewSpec; 123 while ( *currViewSpec != ')' && currViewSpec <= end)123 while (currViewSpec < end && *currViewSpec != ')') 124 124 currViewSpec++; 125 if (currViewSpec > end)125 if (currViewSpec >= end) 126 126 return false; 127 127 setViewTargetString(String(viewTargetStart, currViewSpec - viewTargetStart)); … … 132 132 if (!skipString(currViewSpec, end, zoomAndPanSpec, sizeof(zoomAndPanSpec) / sizeof(UChar))) 133 133 return false; 134 if ( *currViewSpec != '(')134 if (currViewSpec >= end || *currViewSpec != '(') 135 135 return false; 136 136 currViewSpec++; 137 137 if (!parseZoomAndPan(currViewSpec, end)) 138 138 return false; 139 if ( *currViewSpec != ')')139 if (currViewSpec >= end || *currViewSpec != ')') 140 140 return false; 141 141 currViewSpec++; … … 143 143 if (!skipString(currViewSpec, end, preserveAspectRatioSpec, sizeof(preserveAspectRatioSpec) / sizeof(UChar))) 144 144 return false; 145 if ( *currViewSpec != '(')145 if (currViewSpec >= end || *currViewSpec != '(') 146 146 return false; 147 147 currViewSpec++; 148 148 if (!preserveAspectRatioBaseValue()->parsePreserveAspectRatio(currViewSpec, end, false)) 149 149 return false; 150 if ( *currViewSpec != ')')150 if (currViewSpec >= end || *currViewSpec != ')') 151 151 return false; 152 152 currViewSpec++; … … 154 154 if (!skipString(currViewSpec, end, transformSpec, sizeof(transformSpec) / sizeof(UChar))) 155 155 return false; 156 if ( *currViewSpec != '(')156 if (currViewSpec >= end || *currViewSpec != '(') 157 157 return false; 158 158 currViewSpec++; 159 159 SVGTransformable::parseTransformAttribute(m_transform.get(), currViewSpec, end); 160 if ( *currViewSpec != ')')160 if (currViewSpec >= end || *currViewSpec != ')') 161 161 return false; 162 162 currViewSpec++; 163 } 163 } else 164 return false; 164 165 165 if ( *currViewSpec == ';')166 if (currViewSpec < end && *currViewSpec == ';') 166 167 currViewSpec++; 167 168 } 168 if (currViewSpec >= end) 169 return false; 170 171 if (*currViewSpec != ')') 169 170 if (currViewSpec >= end || *currViewSpec != ')') 172 171 return false; 173 172
Note: See TracChangeset
for help on using the changeset viewer.