bool TouchBlockState::CopyAllowedTouchBehaviorsFrom(const TouchBlockState& aOther) { TBS_LOG("%p copying allowed touch behaviours from %p\n", this, &aOther); MOZ_ASSERT(aOther.mAllowedTouchBehaviorSet); return SetAllowedTouchBehaviors(aOther.mAllowedTouchBehaviors); }
void TouchBlockState::CopyPropertiesFrom(const TouchBlockState& aOther) { TBS_LOG("%p copying properties from %p\n", this, &aOther); if (gfxPrefs::TouchActionEnabled()) { MOZ_ASSERT(aOther.mAllowedTouchBehaviorSet || aOther.IsContentResponseTimerExpired()); SetAllowedTouchBehaviors(aOther.mAllowedTouchBehaviors); } mTransformToApzc = aOther.mTransformToApzc; }