mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1227001 part 3 - Remove no longer used mChangedBreaks from BreakSink. r=jfkthame
This commit is contained in:
parent
32098e9c64
commit
81957d8bcb
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user