зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1261578 - Part 3. Correct MathML text color; r=jfkthame
MozReview-Commit-ID: HqQX88Ja6ug --HG-- extra : rebase_source : 1893b107ef365df7dbe09cae3616df8615cdf6da
This commit is contained in:
Родитель
f530904493
Коммит
51fa8b8e92
|
@ -2124,7 +2124,8 @@ nsMathMLChar::PaintForeground(nsPresContext* aPresContext,
|
|||
RefPtr<gfxContext> thebesContext = aRenderingContext.ThebesContext();
|
||||
|
||||
// Set color ...
|
||||
nscolor fgColor = styleContext->GetVisitedDependentColor(eCSSProperty_color);
|
||||
nsCSSProperty colorProp = styleContext->GetTextFillColorProp();
|
||||
nscolor fgColor = styleContext->GetVisitedDependentColor(colorProp);
|
||||
if (aIsSelected) {
|
||||
// get color to use for selection from the look&feel object
|
||||
fgColor = LookAndFeel::GetColor(LookAndFeel::eColorID_TextSelectForeground,
|
||||
|
|
|
@ -365,8 +365,9 @@ void nsDisplayMathMLBar::Paint(nsDisplayListBuilder* aBuilder,
|
|||
NSRectToNonEmptySnappedRect(mRect + ToReferenceFrame(),
|
||||
mFrame->PresContext()->AppUnitsPerDevPixel(),
|
||||
*drawTarget);
|
||||
nsCSSProperty colorProp = mFrame->StyleContext()->GetTextFillColorProp();
|
||||
ColorPattern color(ToDeviceColor(
|
||||
mFrame->GetVisitedDependentColor(eCSSProperty_color)));
|
||||
mFrame->GetVisitedDependentColor(colorProp)));
|
||||
drawTarget->FillRect(rect, color);
|
||||
}
|
||||
|
||||
|
|
|
@ -779,8 +779,9 @@ void nsDisplayNotation::Paint(nsDisplayListBuilder* aBuilder,
|
|||
presContext->AppUnitsPerDevPixel());
|
||||
rect.Deflate(strokeWidth / 2.f);
|
||||
|
||||
nsCSSProperty colorProp = mFrame->StyleContext()->GetTextFillColorProp();
|
||||
ColorPattern color(ToDeviceColor(
|
||||
mFrame->GetVisitedDependentColor(eCSSProperty_color)));
|
||||
mFrame->GetVisitedDependentColor(colorProp)));
|
||||
|
||||
StrokeOptions strokeOptions(strokeWidth);
|
||||
|
||||
|
|
|
@ -629,8 +629,9 @@ void nsDisplayMathMLSlash::Paint(nsDisplayListBuilder* aBuilder,
|
|||
Rect rect = NSRectToRect(mRect + ToReferenceFrame(),
|
||||
presContext->AppUnitsPerDevPixel());
|
||||
|
||||
nsCSSProperty colorProp = mFrame->StyleContext()->GetTextFillColorProp();
|
||||
ColorPattern color(ToDeviceColor(
|
||||
mFrame->GetVisitedDependentColor(eCSSProperty_color)));
|
||||
mFrame->GetVisitedDependentColor(colorProp)));
|
||||
|
||||
// draw the slash as a parallelogram
|
||||
Point delta = Point(presContext->AppUnitsToGfxUnits(mThickness), 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче