зеркало из https://github.com/mozilla/pjs.git
b=379328, focus outline rendering regression fix
This commit is contained in:
Родитель
350cb2d547
Коммит
b05b4b2e35
|
@ -2356,18 +2356,19 @@ nsCSSRendering::PaintOutline(nsPresContext* aPresContext,
|
|||
oRect.size.width - (2*width) / (2.0 * twipsPerPixel),
|
||||
oRect.size.height - (2*width) / (2.0 * twipsPerPixel));
|
||||
|
||||
// default to current color in case it is invert color
|
||||
// and the platform does not support that
|
||||
nscolor outlineColor(ourColor->mColor);
|
||||
nscolor outlineColor;
|
||||
|
||||
// PR_FALSE means use the initial color; PR_TRUE means a color was
|
||||
// set.
|
||||
if (!aOutlineStyle.GetOutlineColor(outlineColor))
|
||||
outlineColor = ourColor->mColor;
|
||||
|
||||
PRUint8 outlineStyle = aOutlineStyle.GetOutlineStyle();
|
||||
|
||||
// grab the thebes context
|
||||
nsRefPtr<gfxContext> ctx = (gfxContext*)
|
||||
aRenderingContext.GetNativeGraphicData(nsIRenderingContext::NATIVE_THEBES_CONTEXT);
|
||||
|
||||
PRUint8 outlineStyle = aOutlineStyle.GetOutlineStyle();
|
||||
if (!aOutlineStyle.GetOutlineColor(outlineColor))
|
||||
return;
|
||||
|
||||
ctx->Save();
|
||||
|
||||
// Clamp the CTM to be pixel-aligned; we do this only
|
||||
|
|
Загрузка…
Ссылка в новой задаче