mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1154478 - Rename gfxPrefs::LayoutEventRegionsEnabled to LayoutEventRegionsEnabledDoNotUseDirectly. r=kats
--HG-- extra : source : a993f4ed89d7aa36f1c48b85810319374f7bf671
This commit is contained in:
parent
8842b5aa7d
commit
1b108ac0db
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user