Bug 1295084 Part 1 - Move FragmentOrURL into mozilla namespace. r=dholbert

--HG--
extra : rebase_source : 2d4be5845d11c03560c7cd3fd60417b47f2a6dac
This commit is contained in:
tlin@mozilla.com 2016-08-25 09:59:51 +00:00
Родитель 7392fb1b41
Коммит 3100ef24af
3 изменённых файлов: 13 добавлений и 9 удалений

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

@ -590,7 +590,7 @@ private:
nsROCSSPrimitiveValue* aValue); nsROCSSPrimitiveValue* aValue);
void SetValueToPosition(const nsStyleImageLayers::Position& aPosition, void SetValueToPosition(const nsStyleImageLayers::Position& aPosition,
nsDOMCSSValueList* aValueList); nsDOMCSSValueList* aValueList);
void SetValueToFragmentOrURL(const FragmentOrURL* aFragmentOrURL, void SetValueToFragmentOrURL(const mozilla::FragmentOrURL* aFragmentOrURL,
nsROCSSPrimitiveValue* aValue); nsROCSSPrimitiveValue* aValue);
/** /**

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

@ -110,6 +110,8 @@ static_assert(NS_STYLE_INHERIT_MASK == (1 << nsStyleStructID_Length) - 1,
static_assert((NS_RULE_NODE_IS_ANIMATION_RULE & NS_STYLE_INHERIT_MASK) == 0, static_assert((NS_RULE_NODE_IS_ANIMATION_RULE & NS_STYLE_INHERIT_MASK) == 0,
"NS_RULE_NODE_IS_ANIMATION_RULE must not overlap the style struct bits."); "NS_RULE_NODE_IS_ANIMATION_RULE must not overlap the style struct bits.");
namespace mozilla {
struct FragmentOrURL struct FragmentOrURL
{ {
FragmentOrURL() : mIsLocalRef(false) {} FragmentOrURL() : mIsLocalRef(false) {}
@ -143,6 +145,8 @@ private:
bool mIsLocalRef; bool mIsLocalRef;
}; };
} // namespace mozilla
// The lifetime of these objects is managed by the presshell's arena. // The lifetime of these objects is managed by the presshell's arena.
struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleFont struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleFont
{ {
@ -689,7 +693,7 @@ struct nsStyleImageLayers {
friend struct Layer; friend struct Layer;
struct Layer { struct Layer {
nsStyleImage mImage; // [reset] nsStyleImage mImage; // [reset]
FragmentOrURL mSourceURI; // [reset] mozilla::FragmentOrURL mSourceURI; // [reset]
// mask-only property // mask-only property
// This property is used for mask layer only. // This property is used for mask layer only.
// For a background layer, it should always // For a background layer, it should always
@ -3523,7 +3527,7 @@ struct nsStyleSVGPaint
{ {
union { union {
nscolor mColor; nscolor mColor;
FragmentOrURL* mPaintServer; mozilla::FragmentOrURL* mPaintServer;
} mPaint; } mPaint;
nsStyleSVGPaintType mType; nsStyleSVGPaintType mType;
nscolor mFallbackColor; nscolor mFallbackColor;
@ -3574,9 +3578,9 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleSVG
nsStyleSVGPaint mFill; // [inherited] nsStyleSVGPaint mFill; // [inherited]
nsStyleSVGPaint mStroke; // [inherited] nsStyleSVGPaint mStroke; // [inherited]
FragmentOrURL mMarkerEnd; // [inherited] mozilla::FragmentOrURL mMarkerEnd; // [inherited]
FragmentOrURL mMarkerMid; // [inherited] mozilla::FragmentOrURL mMarkerMid; // [inherited]
FragmentOrURL mMarkerStart; // [inherited] mozilla::FragmentOrURL mMarkerStart; // [inherited]
nsTArray<nsStyleCoord> mStrokeDasharray; // [inherited] coord, percent, factor nsTArray<nsStyleCoord> mStrokeDasharray; // [inherited] coord, percent, factor
nsStyleCoord mStrokeDashoffset; // [inherited] coord, percent, factor nsStyleCoord mStrokeDashoffset; // [inherited] coord, percent, factor
@ -3701,7 +3705,7 @@ struct nsStyleFilter
void SetFilterParameter(const nsStyleCoord& aFilterParameter, void SetFilterParameter(const nsStyleCoord& aFilterParameter,
int32_t aType); int32_t aType);
FragmentOrURL* GetURL() const { mozilla::FragmentOrURL* GetURL() const {
NS_ASSERTION(mType == NS_STYLE_FILTER_URL, "wrong filter type"); NS_ASSERTION(mType == NS_STYLE_FILTER_URL, "wrong filter type");
return mURL; return mURL;
} }
@ -3721,7 +3725,7 @@ private:
int32_t mType; // see NS_STYLE_FILTER_* constants in nsStyleConsts.h int32_t mType; // see NS_STYLE_FILTER_* constants in nsStyleConsts.h
nsStyleCoord mFilterParameter; // coord, percent, factor, angle nsStyleCoord mFilterParameter; // coord, percent, factor, angle
union { union {
FragmentOrURL* mURL; mozilla::FragmentOrURL* mURL;
nsCSSShadowArray* mDropShadow; nsCSSShadowArray* mDropShadow;
}; };
}; };

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

@ -599,7 +599,7 @@ public:
* A helper function to resolve marker's URL. * A helper function to resolve marker's URL.
*/ */
static already_AddRefed<nsIURI> static already_AddRefed<nsIURI>
GetMarkerURI(nsIFrame* aFrame, FragmentOrURL nsStyleSVG::* aMarker); GetMarkerURI(nsIFrame* aFrame, mozilla::FragmentOrURL nsStyleSVG::* aMarker);
/** /**
* A helper function to resolve clip-path URL. * A helper function to resolve clip-path URL.