зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1338764 part 1 - Use const rather than enum for context flags of nsStyleSVG. r=manishearth
MozReview-Commit-ID: KzORnfVXgLJ --HG-- extra : rebase_source : 365842d6e6fda4b35a5932272773a3d88bfc04c6
This commit is contained in:
Родитель
183499688c
Коммит
0e98738d78
|
@ -3603,15 +3603,19 @@ private:
|
||||||
// Flags to represent the use of context-fill and context-stroke
|
// Flags to represent the use of context-fill and context-stroke
|
||||||
// for fill-opacity or stroke-opacity, and context-value for stroke-dasharray,
|
// for fill-opacity or stroke-opacity, and context-value for stroke-dasharray,
|
||||||
// stroke-dashoffset and stroke-width.
|
// stroke-dashoffset and stroke-width.
|
||||||
enum {
|
|
||||||
FILL_OPACITY_SOURCE_MASK = 0x03, // fill-opacity: context-{fill,stroke}
|
// fill-opacity: context-{fill,stroke}
|
||||||
STROKE_OPACITY_SOURCE_MASK = 0x0C, // stroke-opacity: context-{fill,stroke}
|
static const uint8_t FILL_OPACITY_SOURCE_MASK = 0x03;
|
||||||
STROKE_DASHARRAY_CONTEXT = 0x10, // stroke-dasharray: context-value
|
// stroke-opacity: context-{fill,stroke}
|
||||||
STROKE_DASHOFFSET_CONTEXT = 0x20, // stroke-dashoffset: context-value
|
static const uint8_t STROKE_OPACITY_SOURCE_MASK = 0x0C;
|
||||||
STROKE_WIDTH_CONTEXT = 0x40, // stroke-width: context-value
|
// stroke-dasharray: context-value
|
||||||
FILL_OPACITY_SOURCE_SHIFT = 0,
|
static const uint8_t STROKE_DASHARRAY_CONTEXT = 0x10;
|
||||||
STROKE_OPACITY_SOURCE_SHIFT = 2,
|
// stroke-dashoffset: context-value
|
||||||
};
|
static const uint8_t STROKE_DASHOFFSET_CONTEXT = 0x20;
|
||||||
|
// stroke-width: context-value
|
||||||
|
static const uint8_t STROKE_WIDTH_CONTEXT = 0x40;
|
||||||
|
static const uint8_t FILL_OPACITY_SOURCE_SHIFT = 0;
|
||||||
|
static const uint8_t STROKE_OPACITY_SOURCE_SHIFT = 2;
|
||||||
|
|
||||||
uint8_t mContextFlags; // [inherited]
|
uint8_t mContextFlags; // [inherited]
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче