Backed out changeset e2881c49e123 (bug 382721) for crashtest failures in 730559.html. r=backout on a CLOSED TREE

This commit is contained in:
Sebastian Hengst 2016-06-08 11:08:32 +02:00
Родитель 55bfbee464
Коммит f8ebb731be
5 изменённых файлов: 95 добавлений и 1149 удалений

Просмотреть файл

@ -4,10 +4,9 @@ fails-if(!haveTestPlugin) == plugin-sanity.html div-sanity.html
fails-if(!haveTestPlugin) fuzzy-if(skiaContent,1,160000) == plugin-alpha-zindex.html div-alpha-zindex.html fails-if(!haveTestPlugin) fuzzy-if(skiaContent,1,160000) == plugin-alpha-zindex.html div-alpha-zindex.html
fails-if(!haveTestPlugin) fuzzy-if(skiaContent,1,164000) == plugin-alpha-opacity.html div-alpha-opacity.html fails-if(!haveTestPlugin) fuzzy-if(skiaContent,1,164000) == plugin-alpha-opacity.html div-alpha-opacity.html
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) fails-if(!haveTestPlugin) == windowless-clipping-1.html windowless-clipping-1-ref.html # bug 631832 random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) fails-if(!haveTestPlugin) == windowless-clipping-1.html windowless-clipping-1-ref.html # bug 631832
# fuzzy because of anti-aliasing in dashed border random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) fails-if(!haveTestPlugin) == border-padding-1.html border-padding-1-ref.html # bug 629430
fuzzy(16,256) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) fails-if(!haveTestPlugin) == border-padding-1.html border-padding-1-ref.html # bug 629430 random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) fails-if(!haveTestPlugin) == border-padding-2.html border-padding-2-ref.html # bug 629430
fuzzy(16,256) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) fails-if(!haveTestPlugin) == border-padding-2.html border-padding-2-ref.html # bug 629430 random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) skip-if(!haveTestPlugin) skip-if(Android||B2G) == border-padding-3.html border-padding-3-ref.html # bug 629430 # bug 773482
fuzzy(16,256) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) skip-if(!haveTestPlugin) skip-if(Android||B2G) == border-padding-3.html border-padding-3-ref.html # bug 629430 # bug 773482
# The following two "pluginproblemui-direction" tests are unreliable on all platforms. They should be re-written or replaced. # The following two "pluginproblemui-direction" tests are unreliable on all platforms. They should be re-written or replaced.
#random-if(cocoaWidget||d2d||/^Windows\x20NT\x205\.1/.test(http.oscpu)) fails-if(!haveTestPlugin&&!Android) == pluginproblemui-direction-1.html pluginproblemui-direction-1-ref.html # bug 567367 #random-if(cocoaWidget||d2d||/^Windows\x20NT\x205\.1/.test(http.oscpu)) fails-if(!haveTestPlugin&&!Android) == pluginproblemui-direction-1.html pluginproblemui-direction-1-ref.html # bug 567367
#random-if(cocoaWidget) fails-if(!haveTestPlugin&&!Android) == pluginproblemui-direction-2.html pluginproblemui-direction-2-ref.html #random-if(cocoaWidget) fails-if(!haveTestPlugin&&!Android) == pluginproblemui-direction-2.html pluginproblemui-direction-2-ref.html

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -65,10 +65,8 @@ class nsCSSBorderRenderer final
typedef mozilla::gfx::DrawTarget DrawTarget; typedef mozilla::gfx::DrawTarget DrawTarget;
typedef mozilla::gfx::Float Float; typedef mozilla::gfx::Float Float;
typedef mozilla::gfx::Path Path; typedef mozilla::gfx::Path Path;
typedef mozilla::gfx::Point Point;
typedef mozilla::gfx::Rect Rect; typedef mozilla::gfx::Rect Rect;
typedef mozilla::gfx::RectCornerRadii RectCornerRadii; typedef mozilla::gfx::RectCornerRadii RectCornerRadii;
typedef mozilla::gfx::StrokeOptions StrokeOptions;
public: public:
@ -136,9 +134,6 @@ private:
// For the given style, is the given corner a solid color? // For the given style, is the given corner a solid color?
bool IsSolidCornerStyle(uint8_t aStyle, mozilla::css::Corner aCorner); bool IsSolidCornerStyle(uint8_t aStyle, mozilla::css::Corner aCorner);
// For the given corner, is the given corner mergeable into one dot?
bool IsCornerMergeable(mozilla::css::Corner aCorner);
// For the given solid corner, what color style should be used? // For the given solid corner, what color style should be used?
BorderColorStyle BorderColorStyleForSolidCorner(uint8_t aStyle, mozilla::css::Corner aCorner); BorderColorStyle BorderColorStyleForSolidCorner(uint8_t aStyle, mozilla::css::Corner aCorner);
@ -161,11 +156,6 @@ private:
// is taken care of by the ADD compositing. // is taken care of by the ADD compositing.
already_AddRefed<Path> GetSideClipSubPath(mozilla::css::Side aSide); already_AddRefed<Path> GetSideClipSubPath(mozilla::css::Side aSide);
// Return start or end point for dashed/dotted side
Point GetStraightBorderPoint(mozilla::css::Side aSide,
mozilla::css::Corner aCorner,
bool* aIsUnfilled);
// Given a set of sides to fill and a color, do so in the fastest way. // Given a set of sides to fill and a color, do so in the fastest way.
// //
// Stroke tends to be faster for smaller borders because it doesn't go // Stroke tends to be faster for smaller borders because it doesn't go
@ -196,16 +186,11 @@ private:
// function used by the above to handle -moz-border-colors // function used by the above to handle -moz-border-colors
void DrawBorderSidesCompositeColors(int aSides, const nsBorderColors *compositeColors); void DrawBorderSidesCompositeColors(int aSides, const nsBorderColors *compositeColors);
// Setup the stroke options for the given dashed/dotted side // draw the given dashed side
void SetupDashedOptions(StrokeOptions* aStrokeOptions, void DrawDashedSide (mozilla::css::Side aSide);
Float aDash[2], mozilla::css::Side aSide,
Float aBorderLength);
// Draw the given dashed/dotte side // Setup the stroke style for a given side
void DrawDashedOrDottedSide(mozilla::css::Side aSide); void SetupStrokeStyle(mozilla::css::Side aSize);
// Draw the given dotted side, each dot separately
void DrawDottedSideSlow(mozilla::css::Side aSide);
// Analyze if all border sides have the same width. // Analyze if all border sides have the same width.
bool AllBordersSameWidth(); bool AllBordersSameWidth();

Просмотреть файл

@ -49,7 +49,7 @@
</head> </head>
<body> <body>
<p style="border-style: solid;">&nbsp;</p> <p style="border-style: solid;">&nbsp;</p>
<!-- <p style="border-style: dashed;">&nbsp;</p> --> <p style="border-style: dashed;">&nbsp;</p>
<!-- <p style="border-style: dotted;">&nbsp;</p> --> <!-- <p style="border-style: dotted;">&nbsp;</p> -->
<p style="border-style: double;">&nbsp;</p> <p style="border-style: double;">&nbsp;</p>
<div class="mask tr"></div> <div class="mask tr"></div>

Просмотреть файл

@ -12,7 +12,7 @@
/** /**
* XXX we cannot test the corner by this testing because when the corner * XXX we cannot test the corner by this testing because when the corner
* is joined with anti-aliased, the edge isn't matching with the * is joined with anti-aliased, the edge isn't matching with the
* reference. The dashed and dotted line's anti-aliasing are same. * reference. The dotted line's anti-aliasing is same.
*/ */
/* Cover the coners by the white div element */ /* Cover the coners by the white div element */
@ -40,7 +40,7 @@
</head> </head>
<body> <body>
<p style="border-style: solid;">&nbsp;</p> <p style="border-style: solid;">&nbsp;</p>
<!-- <p style="border-style: dashed;">&nbsp;</p> --> <p style="border-style: dashed;">&nbsp;</p>
<!-- <p style="border-style: dotted;">&nbsp;</p> --> <!-- <p style="border-style: dotted;">&nbsp;</p> -->
<p style="border-style: double;">&nbsp;</p> <p style="border-style: double;">&nbsp;</p>
<div class="tr"></div> <div class="tr"></div>