mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 950467, part 3 - Remove the unused aFrame param from nsFontFaceList::AddFontsFromTextRun. r=roc
This commit is contained in:
parent
30da68c20f
commit
7293495624
@ -5198,10 +5198,7 @@ nsLayoutUtils::GetFontFacesForText(nsIFrame* aFrame,
|
||||
|
||||
uint32_t skipStart = iter.ConvertOriginalToSkipped(fstart);
|
||||
uint32_t skipEnd = iter.ConvertOriginalToSkipped(fend);
|
||||
aFontFaceList->AddFontsFromTextRun(textRun,
|
||||
skipStart,
|
||||
skipEnd - skipStart,
|
||||
curr);
|
||||
aFontFaceList->AddFontsFromTextRun(textRun, skipStart, skipEnd - skipStart);
|
||||
curr = next;
|
||||
} while (aFollowContinuations && curr);
|
||||
|
||||
|
@ -71,8 +71,7 @@ nsFontFaceList::GetLength(uint32_t *aLength)
|
||||
|
||||
nsresult
|
||||
nsFontFaceList::AddFontsFromTextRun(gfxTextRun* aTextRun,
|
||||
uint32_t aOffset, uint32_t aLength,
|
||||
nsIFrame* aFrame)
|
||||
uint32_t aOffset, uint32_t aLength)
|
||||
{
|
||||
gfxTextRun::GlyphRunIterator iter(aTextRun, aOffset, aLength);
|
||||
while (iter.NextRun()) {
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
class gfxFontEntry;
|
||||
class gfxTextRun;
|
||||
class nsIFrame;
|
||||
|
||||
class nsFontFaceList : public nsIDOMFontFaceList
|
||||
{
|
||||
@ -25,8 +24,7 @@ public:
|
||||
virtual ~nsFontFaceList();
|
||||
|
||||
nsresult AddFontsFromTextRun(gfxTextRun* aTextRun,
|
||||
uint32_t aOffset, uint32_t aLength,
|
||||
nsIFrame* aFrame);
|
||||
uint32_t aOffset, uint32_t aLength);
|
||||
|
||||
protected:
|
||||
nsInterfaceHashtable<nsPtrHashKey<gfxFontEntry>,nsIDOMFontFace> mFontFaces;
|
||||
|
Loading…
Reference in New Issue
Block a user