Bug 799407: Fix warnings under layout/generic, r=roc

This commit is contained in:
David Zbarsky 2012-10-13 14:31:19 -04:00
parent beb12efde5
commit 00416cfb9c
4 changed files with 4 additions and 5 deletions

View File

@ -14,7 +14,7 @@ TEST_DIRS += test
MODULE = layout MODULE = layout
LIBRARY_NAME = gkgeneric_s LIBRARY_NAME = gkgeneric_s
LIBXUL_LIBRARY = 1 LIBXUL_LIBRARY = 1
FAIL_ON_WARNINGS = 1
EXPORTS = \ EXPORTS = \
nsQueryFrame.h \ nsQueryFrame.h \

View File

@ -246,7 +246,6 @@ see the nsIEnumerator for more details*/
private: private:
int32_t mIndex; int32_t mIndex;
mozilla::Selection* mDomSelection; mozilla::Selection* mDomSelection;
SelectionType mType;
}; };

View File

@ -1289,8 +1289,8 @@ nsObjectFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
nsTArray<nsNPAPIPluginInstance::VideoInfo*> videos; nsTArray<nsNPAPIPluginInstance::VideoInfo*> videos;
mInstanceOwner->GetVideos(videos); mInstanceOwner->GetVideos(videos);
for (int i = 0; i < videos.Length(); i++) { for (uint32_t i = 0; i < videos.Length(); i++) {
rv = replacedContent.AppendNewToTop(new (aBuilder) rv = replacedContent.AppendNewToTop(new (aBuilder)
nsDisplayPluginVideo(aBuilder, this, videos[i])); nsDisplayPluginVideo(aBuilder, this, videos[i]));
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);

View File

@ -4680,7 +4680,7 @@ nsTextFrame::GetTextDecorations(
const nsCompatibility compatMode = aPresContext->CompatibilityMode(); const nsCompatibility compatMode = aPresContext->CompatibilityMode();
bool useOverride = false; bool useOverride = false;
nscolor overrideColor; nscolor overrideColor = nscolor(0);
// frameTopOffset represents the offset to f's top from our baseline in our // frameTopOffset represents the offset to f's top from our baseline in our
// coordinate space // coordinate space