(no bug) Fix end-of-line whitespace in SVG-as-an-image code & tests. r+a=whitespace-only DONTBUILD
|
@ -10,7 +10,7 @@
|
|||
ctx.fillRect(0, 0, 200, 200);
|
||||
|
||||
// Instantiate an image. Draw it at a larger size, & take snapshot
|
||||
// once it has loaded.
|
||||
// once it has loaded.
|
||||
var image = new Image();
|
||||
image.onload = function() {
|
||||
ctx.drawImage(image, 0, 0, 200, 200);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
preserveAspectRatio value) -->
|
||||
<use xlink:href="#rect"/>
|
||||
</symbol>
|
||||
|
||||
|
||||
<!-- Single column from the testcase -->
|
||||
<g id="column">
|
||||
<use y="0" xlink:href="#pAR_xMaxYMax_slice" width="60" height="20"/>
|
||||
|
|
До Ширина: | Высота: | Размер: 1.8 KiB После Ширина: | Высота: | Размер: 1.8 KiB |
|
@ -54,7 +54,7 @@ fails == canvas-drawImage-slice-1b.html lime100x100-ref.html # XXX all edges fuz
|
|||
# with a variety of preserveAspectRatio values in play.
|
||||
# NOTE: The reference cases in this test triggers 72 assertions (bug 563481)
|
||||
asserts(72) == img-and-image-1.html img-and-image-1-ref.svg
|
||||
|
||||
|
||||
# More complex <img> tests
|
||||
random-if(gtk2Widget) == img-anim-1.html lime100x100-ref.html # bug 612214
|
||||
== img-content-outside-viewBox-1.html img-content-outside-viewBox-1-ref.html
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!-- Test to make sure "preserveAspectRatio" value is applied correctly on
|
||||
<image> tag, when the width:height ratio is less than the image's
|
||||
nativeWidth:nativeHeight -->
|
||||
nativeWidth:nativeHeight -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
style="image-rendering: -moz-crisp-edges">
|
||||
|
|
До Ширина: | Высота: | Размер: 572 B После Ширина: | Высота: | Размер: 571 B |
|
@ -1,6 +1,6 @@
|
|||
<!-- Test to make sure "preserveAspectRatio" value is applied correctly on
|
||||
<image> tag, when the width:height ratio is less than the image's
|
||||
nativeWidth:nativeHeight -->
|
||||
nativeWidth:nativeHeight -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<script xlink:href="util.js" type="text/javascript"/>
|
||||
|
|
До Ширина: | Высота: | Размер: 533 B После Ширина: | Высота: | Размер: 532 B |
|
@ -1,6 +1,6 @@
|
|||
<!-- Test to make sure "preserveAspectRatio" value is applied correctly on
|
||||
<image> tag, when the width:height ratio is greater than the image's
|
||||
nativeWidth:nativeHeight -->
|
||||
nativeWidth:nativeHeight -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
style="image-rendering: -moz-crisp-edges">
|
||||
|
|
До Ширина: | Высота: | Размер: 575 B После Ширина: | Высота: | Размер: 574 B |
|
@ -1,6 +1,6 @@
|
|||
<!-- Test to make sure "preserveAspectRatio" value is applied correctly on
|
||||
<image> tag, when the width:height ratio is greater than the image's
|
||||
nativeWidth:nativeHeight -->
|
||||
nativeWidth:nativeHeight -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<script xlink:href="util.js" type="text/javascript"/>
|
||||
|
|
До Ширина: | Высота: | Размер: 536 B После Ширина: | Высота: | Размер: 535 B |
|
@ -241,7 +241,7 @@ SVGDocumentWrapper::ResetAnimation()
|
|||
return;
|
||||
|
||||
#ifdef DEBUG
|
||||
nsresult rv =
|
||||
nsresult rv =
|
||||
#endif
|
||||
svgElem->SetCurrentTime(0.0f);
|
||||
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "SetCurrentTime failed");
|
||||
|
|
|
@ -124,7 +124,7 @@ public:
|
|||
* Returns a PRBool indicating whether the wrapped document has been parsed
|
||||
* successfully.
|
||||
*
|
||||
* @return PR_TRUE if the document has been parsed successfully,
|
||||
* @return PR_TRUE if the document has been parsed successfully,
|
||||
* PR_FALSE otherwise (e.g. if there's a syntax error in the SVG).
|
||||
*/
|
||||
inline PRBool ParsedSuccessfully() { return !!GetRootSVGElem(); }
|
||||
|
|
|
@ -618,7 +618,7 @@ VectorImage::ResetAnimation()
|
|||
}
|
||||
|
||||
mSVGDocumentWrapper->ResetAnimation();
|
||||
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|