зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1295084 Part 1 - Move FragmentOrURL into mozilla namespace. r=dholbert
--HG-- extra : rebase_source : 2d4be5845d11c03560c7cd3fd60417b47f2a6dac
This commit is contained in:
Родитель
7392fb1b41
Коммит
3100ef24af
|
@ -590,7 +590,7 @@ private:
|
|||
nsROCSSPrimitiveValue* aValue);
|
||||
void SetValueToPosition(const nsStyleImageLayers::Position& aPosition,
|
||||
nsDOMCSSValueList* aValueList);
|
||||
void SetValueToFragmentOrURL(const FragmentOrURL* aFragmentOrURL,
|
||||
void SetValueToFragmentOrURL(const mozilla::FragmentOrURL* aFragmentOrURL,
|
||||
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,
|
||||
"NS_RULE_NODE_IS_ANIMATION_RULE must not overlap the style struct bits.");
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
struct FragmentOrURL
|
||||
{
|
||||
FragmentOrURL() : mIsLocalRef(false) {}
|
||||
|
@ -143,6 +145,8 @@ private:
|
|||
bool mIsLocalRef;
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
// The lifetime of these objects is managed by the presshell's arena.
|
||||
struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleFont
|
||||
{
|
||||
|
@ -689,7 +693,7 @@ struct nsStyleImageLayers {
|
|||
friend struct Layer;
|
||||
struct Layer {
|
||||
nsStyleImage mImage; // [reset]
|
||||
FragmentOrURL mSourceURI; // [reset]
|
||||
mozilla::FragmentOrURL mSourceURI; // [reset]
|
||||
// mask-only property
|
||||
// This property is used for mask layer only.
|
||||
// For a background layer, it should always
|
||||
|
@ -3523,7 +3527,7 @@ struct nsStyleSVGPaint
|
|||
{
|
||||
union {
|
||||
nscolor mColor;
|
||||
FragmentOrURL* mPaintServer;
|
||||
mozilla::FragmentOrURL* mPaintServer;
|
||||
} mPaint;
|
||||
nsStyleSVGPaintType mType;
|
||||
nscolor mFallbackColor;
|
||||
|
@ -3574,9 +3578,9 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleSVG
|
|||
|
||||
nsStyleSVGPaint mFill; // [inherited]
|
||||
nsStyleSVGPaint mStroke; // [inherited]
|
||||
FragmentOrURL mMarkerEnd; // [inherited]
|
||||
FragmentOrURL mMarkerMid; // [inherited]
|
||||
FragmentOrURL mMarkerStart; // [inherited]
|
||||
mozilla::FragmentOrURL mMarkerEnd; // [inherited]
|
||||
mozilla::FragmentOrURL mMarkerMid; // [inherited]
|
||||
mozilla::FragmentOrURL mMarkerStart; // [inherited]
|
||||
nsTArray<nsStyleCoord> mStrokeDasharray; // [inherited] coord, percent, factor
|
||||
|
||||
nsStyleCoord mStrokeDashoffset; // [inherited] coord, percent, factor
|
||||
|
@ -3701,7 +3705,7 @@ struct nsStyleFilter
|
|||
void SetFilterParameter(const nsStyleCoord& aFilterParameter,
|
||||
int32_t aType);
|
||||
|
||||
FragmentOrURL* GetURL() const {
|
||||
mozilla::FragmentOrURL* GetURL() const {
|
||||
NS_ASSERTION(mType == NS_STYLE_FILTER_URL, "wrong filter type");
|
||||
return mURL;
|
||||
}
|
||||
|
@ -3721,7 +3725,7 @@ private:
|
|||
int32_t mType; // see NS_STYLE_FILTER_* constants in nsStyleConsts.h
|
||||
nsStyleCoord mFilterParameter; // coord, percent, factor, angle
|
||||
union {
|
||||
FragmentOrURL* mURL;
|
||||
mozilla::FragmentOrURL* mURL;
|
||||
nsCSSShadowArray* mDropShadow;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -599,7 +599,7 @@ public:
|
|||
* A helper function to resolve marker's URL.
|
||||
*/
|
||||
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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче