зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1209603 patch 2 - Reduce calls to StyleVisibility() in WritingMode constructor. r=heycam
(I noticed this while writing patch 1.) --HG-- extra : commitid : G2JVcpkEDQK
This commit is contained in:
Родитель
3a591db0a3
Коммит
aded17dcb4
|
@ -469,7 +469,7 @@ public:
|
|||
mWritingMode = eBlockFlowMask |
|
||||
eLineOrientMask |
|
||||
eOrientationMask;
|
||||
uint8_t textOrientation = aStyleContext->StyleVisibility()->mTextOrientation;
|
||||
uint8_t textOrientation = styleVisibility->mTextOrientation;
|
||||
if (textOrientation == NS_STYLE_TEXT_ORIENTATION_SIDEWAYS) {
|
||||
mWritingMode |= eSidewaysMask;
|
||||
}
|
||||
|
@ -479,7 +479,7 @@ public:
|
|||
case NS_STYLE_WRITING_MODE_VERTICAL_RL:
|
||||
{
|
||||
mWritingMode = eOrientationMask;
|
||||
uint8_t textOrientation = aStyleContext->StyleVisibility()->mTextOrientation;
|
||||
uint8_t textOrientation = styleVisibility->mTextOrientation;
|
||||
if (textOrientation == NS_STYLE_TEXT_ORIENTATION_SIDEWAYS) {
|
||||
mWritingMode |= eSidewaysMask;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче