mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1000875 - Add invalidation debugging annotations for changes of a layer's forced background color. r=roc
This commit is contained in:
parent
b5d699db21
commit
c7338a1b7a
@ -1975,6 +1975,15 @@ ContainerState::PopThebesLayerData()
|
||||
if (userData->mForcedBackgroundColor != backgroundColor) {
|
||||
// Invalidate the entire target ThebesLayer since we're changing
|
||||
// the background color
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
if (nsLayoutUtils::InvalidationDebuggingIsEnabled()) {
|
||||
printf_stderr("Forced background color has changed from #%08X to #%08X on layer %p\n",
|
||||
userData->mForcedBackgroundColor, backgroundColor, data->mLayer);
|
||||
nsAutoCString str;
|
||||
AppendToString(str, data->mLayer->GetValidRegion());
|
||||
printf_stderr("Invalidating layer %p: %s\n", data->mLayer, str.get());
|
||||
}
|
||||
#endif
|
||||
data->mLayer->InvalidateRegion(data->mLayer->GetValidRegion());
|
||||
}
|
||||
userData->mForcedBackgroundColor = backgroundColor;
|
||||
|
Loading…
Reference in New Issue
Block a user