Bug 1446617 - part 1 - remove unnecessary namespace usage r=dholbert

This commit is contained in:
Robert Longson 2018-03-23 18:17:09 +00:00
Родитель 126534b1e9
Коммит 8873201d39
1 изменённых файлов: 19 добавлений и 19 удалений

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

@ -3355,7 +3355,7 @@ SVGTextFrame::MutationObserver::CharacterDataChanged(nsIContent* aContent,
void
SVGTextFrame::MutationObserver::AttributeChanged(
mozilla::dom::Element* aElement,
Element* aElement,
int32_t aNameSpaceID,
nsAtom* aAttribute,
int32_t aModType,
@ -3672,7 +3672,7 @@ SVGTextFrame::PaintSVG(gfxContext& aContext,
if (drawMode != DrawMode(0)) {
bool paintSVGGlyphs;
nsTextFrame::PaintTextParams params(&aContext);
params.framePt = gfx::Point();
params.framePt = Point();
params.dirtyRect = LayoutDevicePixel::
FromAppUnits(frame->GetVisualOverflowRect(), auPerDevPx);
params.contextPaint = contextPaint;
@ -3863,7 +3863,7 @@ TextRenderedRunFlagsForBBoxContribution(const TextRenderedRun& aRun,
}
SVGBBox
SVGTextFrame::GetBBoxContribution(const gfx::Matrix &aToBBoxUserspace,
SVGTextFrame::GetBBoxContribution(const Matrix &aToBBoxUserspace,
uint32_t aFlags)
{
NS_ASSERTION(PrincipalChildList().FirstChild(), "must have a child frame");
@ -4263,7 +4263,7 @@ SVGTextFrame::GetSubStringLengthSlowFallback(nsIContent* aContent,
*/
int32_t
SVGTextFrame::GetCharNumAtPosition(nsIContent* aContent,
mozilla::nsISVGPoint* aPoint)
nsISVGPoint* aPoint)
{
nsIFrame* kid = PrincipalChildList().FirstChild();
if (NS_SUBTREE_DIRTY(kid)) {
@ -4303,7 +4303,7 @@ SVGTextFrame::GetCharNumAtPosition(nsIContent* aContent,
nsresult
SVGTextFrame::GetStartPositionOfChar(nsIContent* aContent,
uint32_t aCharNum,
mozilla::nsISVGPoint** aResult)
nsISVGPoint** aResult)
{
nsIFrame* kid = PrincipalChildList().FirstChild();
if (NS_SUBTREE_DIRTY(kid)) {
@ -4336,7 +4336,7 @@ SVGTextFrame::GetStartPositionOfChar(nsIContent* aContent,
nsresult
SVGTextFrame::GetEndPositionOfChar(nsIContent* aContent,
uint32_t aCharNum,
mozilla::nsISVGPoint** aResult)
nsISVGPoint** aResult)
{
nsIFrame* kid = PrincipalChildList().FirstChild();
if (NS_SUBTREE_DIRTY(kid)) {
@ -4381,7 +4381,7 @@ SVGTextFrame::GetEndPositionOfChar(nsIContent* aContent,
nsresult
SVGTextFrame::GetExtentOfChar(nsIContent* aContent,
uint32_t aCharNum,
dom::SVGIRect** aResult)
SVGIRect** aResult)
{
nsIFrame* kid = PrincipalChildList().FirstChild();
if (NS_SUBTREE_DIRTY(kid)) {
@ -4436,7 +4436,7 @@ SVGTextFrame::GetExtentOfChar(nsIContent* aContent,
// Transform the glyph's rect into user space.
gfxRect r = m.TransformBounds(glyphRect);
RefPtr<dom::SVGRect> rect = new dom::SVGRect(aContent, r.x, r.y, r.width, r.height);
RefPtr<SVGRect> rect = new SVGRect(aContent, r.x, r.y, r.width, r.height);
rect.forget(aResult);
return NS_OK;
}
@ -4854,7 +4854,7 @@ ConvertLogicalTextAnchorToPhysical(uint8_t aTextAnchor, bool aIsRightToLeft)
* @param aAnchorSide The direction to anchor.
*/
static void
ShiftAnchoredChunk(nsTArray<mozilla::CharPosition>& aCharPositions,
ShiftAnchoredChunk(nsTArray<CharPosition>& aCharPositions,
uint32_t aChunkStart,
uint32_t aChunkEnd,
gfxFloat aVisIStartEdge,
@ -4984,13 +4984,13 @@ SVGTextFrame::GetTextPathGeometryElement(nsIFrame* aTextPathFrame)
if (!property) {
nsIContent* content = aTextPathFrame->GetContent();
dom::SVGTextPathElement* tp = static_cast<dom::SVGTextPathElement*>(content);
SVGTextPathElement* tp = static_cast<SVGTextPathElement*>(content);
nsAutoString href;
if (tp->mStringAttributes[dom::SVGTextPathElement::HREF].IsExplicitlySet()) {
tp->mStringAttributes[dom::SVGTextPathElement::HREF]
if (tp->mStringAttributes[SVGTextPathElement::HREF].IsExplicitlySet()) {
tp->mStringAttributes[SVGTextPathElement::HREF]
.GetAnimValue(href, tp);
} else {
tp->mStringAttributes[dom::SVGTextPathElement::XLINK_HREF]
tp->mStringAttributes[SVGTextPathElement::XLINK_HREF]
.GetAnimValue(href, tp);
}
@ -5046,16 +5046,16 @@ SVGTextFrame::GetOffsetScale(nsIFrame* aTextPathFrame)
if (!element)
return 1.0;
return element->GetPathLengthScale(dom::SVGGeometryElement::eForTextPath);
return element->GetPathLengthScale(SVGGeometryElement::eForTextPath);
}
gfxFloat
SVGTextFrame::GetStartOffset(nsIFrame* aTextPathFrame)
{
dom::SVGTextPathElement *tp =
static_cast<dom::SVGTextPathElement*>(aTextPathFrame->GetContent());
SVGTextPathElement *tp =
static_cast<SVGTextPathElement*>(aTextPathFrame->GetContent());
nsSVGLength2 *length =
&tp->mLengthAttributes[dom::SVGTextPathElement::STARTOFFSET];
&tp->mLengthAttributes[SVGTextPathElement::STARTOFFSET];
if (length->IsPercentage()) {
RefPtr<Path> data = GetTextPath(aTextPathFrame);
@ -5093,8 +5093,8 @@ SVGTextFrame::DoTextPathLayout()
continue;
}
dom::SVGTextPathElement* textPath =
static_cast<dom::SVGTextPathElement*>(textPathFrame->GetContent());
SVGTextPathElement* textPath =
static_cast<SVGTextPathElement*>(textPathFrame->GetContent());
RefPtr<SVGAnimatedEnumeration> sideEnum = textPath->Side();
uint16_t side = sideEnum->AnimVal();