mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 814418 - Fix some warnings about unused variables. r=ehsan
This commit is contained in:
parent
46c272ec04
commit
268082eeb3
@ -91,10 +91,11 @@ public:
|
||||
|
||||
void NotifyConsumptionChanged(MediaStreamGraph* aGraph, Consumption aConsuming)
|
||||
{
|
||||
const char* state;
|
||||
|
||||
DOM_CAMERA_LOGT("%s:%d : this=%p\n", __func__, __LINE__, this);
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
const char* state;
|
||||
|
||||
switch (aConsuming) {
|
||||
case NOT_CONSUMED:
|
||||
state = "not consuming";
|
||||
@ -110,6 +111,7 @@ public:
|
||||
}
|
||||
|
||||
DOM_CAMERA_LOGA("camera viewfinder is %s\n", state);
|
||||
#endif
|
||||
nsCOMPtr<nsIRunnable> previewControl;
|
||||
|
||||
switch (aConsuming) {
|
||||
|
@ -578,7 +578,7 @@ nsresult nsNPAPIPluginInstance::SetWindow(NPWindow* window)
|
||||
|
||||
NPPAutoPusher nppPusher(&mNPP);
|
||||
|
||||
NPError error;
|
||||
DebugOnly<NPError> error;
|
||||
NS_TRY_SAFE_CALL_RETURN(error, (*pluginFunctions->setwindow)(&mNPP, (NPWindow*)window), this);
|
||||
|
||||
mInPluginInitCall = oldVal;
|
||||
@ -586,7 +586,7 @@ nsresult nsNPAPIPluginInstance::SetWindow(NPWindow* window)
|
||||
NPP_PLUGIN_LOG(PLUGIN_LOG_NORMAL,
|
||||
("NPP SetWindow called: this=%p, [x=%d,y=%d,w=%d,h=%d], clip[t=%d,b=%d,l=%d,r=%d], return=%d\n",
|
||||
this, window->x, window->y, window->width, window->height,
|
||||
window->clipRect.top, window->clipRect.bottom, window->clipRect.left, window->clipRect.right, error));
|
||||
window->clipRect.top, window->clipRect.bottom, window->clipRect.left, window->clipRect.right, (NPError)error));
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -1322,7 +1322,9 @@ ContainerState::CreateOrRecycleThebesLayer(const nsIFrame* aActiveScrolledRoot,
|
||||
// We need a new thebes layer
|
||||
nsRefPtr<ThebesLayer> layer;
|
||||
ThebesDisplayItemLayerUserData* data;
|
||||
#ifndef MOZ_ANDROID_OMTC
|
||||
bool didResetScrollPositionForLayerPixelAlignment = false;
|
||||
#endif
|
||||
if (mNextFreeRecycledThebesLayer < mRecycledThebesLayers.Length()) {
|
||||
// Recycle a layer
|
||||
layer = mRecycledThebesLayers[mNextFreeRecycledThebesLayer];
|
||||
@ -1348,7 +1350,9 @@ ContainerState::CreateOrRecycleThebesLayer(const nsIFrame* aActiveScrolledRoot,
|
||||
!FuzzyEqual(data->mYScale, mParameters.mYScale, 0.00001) ||
|
||||
data->mAppUnitsPerDevPixel != mAppUnitsPerDevPixel) {
|
||||
InvalidateEntireThebesLayer(layer, aActiveScrolledRoot);
|
||||
#ifndef MOZ_ANDROID_OMTC
|
||||
didResetScrollPositionForLayerPixelAlignment = true;
|
||||
#endif
|
||||
}
|
||||
if (!data->mRegionToInvalidate.IsEmpty()) {
|
||||
#ifdef DEBUG_INVALIDATIONS
|
||||
@ -1375,7 +1379,9 @@ ContainerState::CreateOrRecycleThebesLayer(const nsIFrame* aActiveScrolledRoot,
|
||||
data = new ThebesDisplayItemLayerUserData();
|
||||
layer->SetUserData(&gThebesDisplayItemLayerUserData, data);
|
||||
ResetScrollPositionForLayerPixelAlignment(aActiveScrolledRoot);
|
||||
#ifndef MOZ_ANDROID_OMTC
|
||||
didResetScrollPositionForLayerPixelAlignment = true;
|
||||
#endif
|
||||
}
|
||||
data->mXScale = mParameters.mXScale;
|
||||
data->mYScale = mParameters.mYScale;
|
||||
|
@ -1236,7 +1236,7 @@ nsFrameConstructorState::ProcessFrameInsertions(nsAbsoluteItems& aFrameItems,
|
||||
// if the containing block hasn't been reflowed yet (so NS_FRAME_FIRST_REFLOW
|
||||
// is set) and doesn't have any frames in the aChildListID child list yet.
|
||||
const nsFrameList& childList = containingBlock->GetChildList(aChildListID);
|
||||
nsresult rv = NS_OK;
|
||||
DebugOnly<nsresult> rv = NS_OK;
|
||||
if (childList.IsEmpty() &&
|
||||
(containingBlock->GetStateBits() & NS_FRAME_FIRST_REFLOW)) {
|
||||
// If we're injecting absolutely positioned frames, inject them on the
|
||||
|
@ -879,7 +879,7 @@ nsFrameManager::ReparentStyleContext(nsIFrame* aFrame)
|
||||
|
||||
// Make sure to call CalcStyleDifference so that the new context ends
|
||||
// up resolving all the structs the old context resolved.
|
||||
nsChangeHint styleChange =
|
||||
DebugOnly<nsChangeHint> styleChange =
|
||||
oldContext->CalcStyleDifference(newContext, nsChangeHint(0));
|
||||
// The style change is always 0 because we have the same rulenode and
|
||||
// CalcStyleDifference optimizes us away. That's OK, though:
|
||||
|
@ -1305,7 +1305,7 @@ nsTreeBodyFrame::AdjustForCellText(nsAutoString& aText,
|
||||
nscoord maxWidth = aTextRect.width;
|
||||
|
||||
if (aColumn->Overflow()) {
|
||||
nsresult rv;
|
||||
DebugOnly<nsresult> rv;
|
||||
nsTreeColumn* nextColumn = aColumn->GetNext();
|
||||
while (nextColumn && width > maxWidth) {
|
||||
while (nextColumn) {
|
||||
|
@ -512,14 +512,18 @@ InputTestConsumer::OnStopRequest(nsIRequest *request, nsISupports* context,
|
||||
URLLoadInfo* info = (URLLoadInfo*)context;
|
||||
|
||||
if (info) {
|
||||
#ifdef PR_LOGGING
|
||||
double connectTime;
|
||||
#endif
|
||||
double readTime;
|
||||
uint32_t httpStatus;
|
||||
bool bHTTPURL = false;
|
||||
|
||||
info->mTotalTime = PR_Now() - info->mTotalTime;
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
connectTime = (info->mConnectTime/1000.0)/1000.0;
|
||||
#endif
|
||||
readTime = ((info->mTotalTime-info->mConnectTime)/1000.0)/1000.0;
|
||||
|
||||
nsCOMPtr<nsIHttpChannel> pHTTPCon(do_QueryInterface(request));
|
||||
|
Loading…
Reference in New Issue
Block a user