Bug 848252 - Replace NS_FRAME_IS_SVG_TEXT checks with IsSVGText(). r=dholbert
This commit is contained in:
@@ -2150,7 +2150,7 @@ nsCSSOffsetState::InitOffsets(nscoord aContainingBlockWidth,
|
||||
mComputedPadding.left = presContext->DevPixelsToAppUnits(widget.left);
|
||||
needPaddingProp = false;
|
||||
}
|
||||
else if (frame->GetStateBits() & NS_FRAME_IS_SVG_TEXT) {
|
||||
else if (frame->IsSVGText()) {
|
||||
mComputedPadding.SizeTo(0, 0, 0, 0);
|
||||
needPaddingProp = false;
|
||||
}
|
||||
@@ -2176,7 +2176,7 @@ nsCSSOffsetState::InitOffsets(nscoord aContainingBlockWidth,
|
||||
mComputedBorderPadding.left =
|
||||
presContext->DevPixelsToAppUnits(widget.left);
|
||||
}
|
||||
else if (frame->GetStateBits() & NS_FRAME_IS_SVG_TEXT) {
|
||||
else if (frame->IsSVGText()) {
|
||||
mComputedBorderPadding.SizeTo(0, 0, 0, 0);
|
||||
}
|
||||
else if (aBorder) { // border is an input arg
|
||||
@@ -2422,7 +2422,7 @@ bool
|
||||
nsCSSOffsetState::ComputeMargin(nscoord aContainingBlockWidth)
|
||||
{
|
||||
// SVG text frames have no margin.
|
||||
if (frame->GetStateBits() & NS_FRAME_IS_SVG_TEXT) {
|
||||
if (frame->IsSVGText()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user