Bug 1154478 - Rename gfxPrefs::LayoutEventRegionsEnabled to LayoutEventRegionsEnabledDoNotUseDirectly. r=kats

--HG--
extra : source : a993f4ed89d7aa36f1c48b85810319374f7bf671
This commit is contained in:
Botond Ballo 2015-04-23 01:25:00 -04:00
parent 8842b5aa7d
commit 1b108ac0db
2 changed files with 4 additions and 2 deletions

View File

@ -343,7 +343,7 @@ private:
DECL_GFX_PREF(Live, "layout.css.scroll-snap.prediction-sensitivity", ScrollSnapPredictionSensitivity, float, 0.750f);
DECL_GFX_PREF(Once, "layout.css.touch_action.enabled", TouchActionEnabled, bool, false);
DECL_GFX_PREF(Live, "layout.display-list.dump", LayoutDumpDisplayList, bool, false);
DECL_GFX_PREF(Live, "layout.event-regions.enabled", LayoutEventRegionsEnabled, bool, false);
DECL_GFX_PREF(Live, "layout.event-regions.enabled", LayoutEventRegionsEnabledDoNotUseDirectly, bool, false);
DECL_GFX_PREF(Once, "layout.frame_rate", LayoutFrameRate, int32_t, -1);
DECL_GFX_PREF(Once, "layout.paint_rects_separately", LayoutPaintRectsSeparately, bool, true);

View File

@ -347,7 +347,9 @@ public:
bool IsBuildingLayerEventRegions()
{
if (mMode == PAINTING) {
return (gfxPrefs::LayoutEventRegionsEnabled() ||
// Note: this is the only place that gets to query LayoutEventRegionsEnabled
// 'directly' - other code should call this function.
return (gfxPrefs::LayoutEventRegionsEnabledDoNotUseDirectly() ||
gfxPrefs::AsyncPanZoomEnabled());
}
return false;