Bug 1227001 part 3 - Remove no longer used mChangedBreaks from BreakSink. r=jfkthame

This commit is contained in:
Xidorn Quan 2015-11-24 10:23:05 +11:00
parent 32098e9c64
commit 81957d8bcb

View File

@ -967,14 +967,12 @@ public:
BreakSink(gfxTextRun* aTextRun, gfxContext* aContext,
uint32_t aOffsetIntoTextRun) :
mTextRun(aTextRun), mContext(aContext),
mOffsetIntoTextRun(aOffsetIntoTextRun),
mChangedBreaks(false) {}
mOffsetIntoTextRun(aOffsetIntoTextRun) {}
virtual void SetBreaks(uint32_t aOffset, uint32_t aLength,
uint8_t* aBreakBefore) override {
if (mTextRun->SetPotentialLineBreaks(aOffset + mOffsetIntoTextRun, aLength,
aBreakBefore, mContext)) {
mChangedBreaks = true;
// Be conservative and assume that some breaks have been set
mTextRun->ClearFlagBits(nsTextFrameUtils::TEXT_NO_BREAKS);
}
@ -1011,7 +1009,6 @@ public:
gfxTextRun* mTextRun;
gfxContext* mContext;
uint32_t mOffsetIntoTextRun;
bool mChangedBreaks;
};
private: