Commit f3ae591a authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

белый текст в фаерфоксе под линуксом

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68689 954022d7-b5bf-4e40-9824-e11837661b57
parent 060ab9b2
......@@ -141,10 +141,28 @@ CGlyphData.prototype =
this.B = b;
if (this.m_oCanvas != null)
{
if (AscBrowser.isMozilla && AscBrowser.isLinuxOS)
{
this.m_oContext.fillStyle = (this.R == 0xFF && this.G == 0xFF && this.B == 0xFF) ? "rgb(255,255,254)" : "rgb(" + this.R + "," + this.G + "," + this.B + ")";
this.m_oContext.fillRect(0,0,w,h);
}
else
{
this.m_oContext.fillStyle = "rgb(" + this.R + "," + this.G + "," + this.B + ")";
this.m_oContext.fillRect(0,0,w,h);
}
}
else
{
if (AscBrowser.isMozilla && AscBrowser.isLinuxOS)
{
var _raster = this.RasterData;
_raster.Chunk.CanvasCtx.fillStyle = (this.R == 0xFF && this.G == 0xFF && this.B == 0xFF) ? "rgb(255,255,254)" : "rgb(" + this.R + "," + this.G + "," + this.B + ")";
var _x = _raster.Line.Height * _raster.Index;
var _y = _raster.Line.Y;
this.RasterData.Chunk.CanvasCtx.fillRect(_x, _y, w, h);
}
else
{
var _raster = this.RasterData;
......@@ -154,6 +172,7 @@ CGlyphData.prototype =
this.RasterData.Chunk.CanvasCtx.fillRect(_x, _y, w, h);
}
}
}
else
{
var _r = r;
......
......@@ -67,6 +67,8 @@ AscBrowser.isArm = (AscBrowser.userAgent.indexOf("arm") > -1);
AscBrowser.isMozilla = !AscBrowser.isIE && (AscBrowser.userAgent.indexOf("firefox") > -1);
AscBrowser.isLinuxOS = (AscBrowser.userAgent.indexOf(" linux ") > -1);
AscBrowser.zoom = 1;
AscBrowser.checkZoom = function()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment