:+java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 79 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
tm = new TestAPZCTreeManager(mcc);
updater = new APZUpdater(tm, false);
sampler = new APZSampler(tm, false);
apzc = new TestAsyncPanZoomController(LayersId{0}, mcc, tm, mGestureBehavior);
apzc->SetFrameMetrics(TestFrameMetrics());
apzc->GetScrollMetadata().SetIsLayersIdRoot(true); // Since we're working with just one APZC, make it the root-content one. // Tests that want to test the behaviour of a non-root-content APZC // generally want to do so in a context where it has a root-content // ancestor, and so would use APZCTreeManagerTester. // Note that some tests overwrite the initial FrameMetrics; such tests // still need to take care that the root-content flag is set on the new // FrameMetrics they set (if they care about root-content behaviours like // zooming).
apzc->GetFrameMetrics().SetIsRootContent(true);
}
/** * Get the APZC's scroll range in CSS pixels.
*/
CSSRect GetScrollRange() const { const FrameMetrics& metrics = apzc->GetFrameMetrics(); return CSSRect(metrics.GetScrollableRect().TopLeft(),
metrics.GetScrollableRect().Size() -
metrics.CalculateCompositedSizeInCssPixels());
}
virtualvoid TearDown() { while (mcc->RunThroughDelayedTasks());
apzc->Destroy();
tm->ClearTree();
tm->ClearContentController();
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.2Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.