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:
L. David Baron 2015-10-19 20:42:28 -07:00
Родитель 3a591db0a3
Коммит aded17dcb4
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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;
}