Bug 1224015 - Part 3: ifdef changes to C++APZ so that they only apply to single process APZ. r=tnikkel

Added MOZ_SINGLE_PROCESS_APZ flag.
This commit is contained in:
Randall Barker
2015-11-26 20:51:13 -06:00
parent a9b27c2646
commit 05a35cd67a
8 changed files with 53 additions and 10 deletions

View File

@@ -147,6 +147,7 @@ ChromeProcessController::HandleDoubleTap(const mozilla::CSSPoint& aPoint,
}
CSSPoint point = APZCCallbackHelper::ApplyCallbackTransform(aPoint, aGuid);
#if defined(MOZ_SINGLE_PROCESS_APZ)
// CalculateRectToZoomTo performs a hit test on the frame associated with the
// Root Content Document. Unfortunately that frame does not know about the
// resolution of the document and so we must remove it before calculating
@@ -155,6 +156,7 @@ ChromeProcessController::HandleDoubleTap(const mozilla::CSSPoint& aPoint,
const float resolution = presShell->ScaleToResolution() ? presShell->GetResolution () : 1.0f;
point.x = point.x / resolution;
point.y = point.y / resolution;
#endif // MOZ_SINGLE_PROCESS_APZ
CSSRect zoomToRect = CalculateRectToZoomTo(document, point);
uint32_t presShellId;