Bug 1615609 - Rename nsRefreshDriver::IntersectionObservationAdded. r=hiro
The existing name is wrong since recently. Differential Revision: https://phabricator.services.mozilla.com/D62922
This commit is contained in:
@@ -162,7 +162,7 @@ void DOMIntersectionObserver::Observe(Element& aTarget) {
|
|||||||
Connect();
|
Connect();
|
||||||
if (mDocument) {
|
if (mDocument) {
|
||||||
if (nsPresContext* pc = mDocument->GetPresContext()) {
|
if (nsPresContext* pc = mDocument->GetPresContext()) {
|
||||||
pc->RefreshDriver()->IntersectionObservationAdded();
|
pc->RefreshDriver()->EnsureIntersectionObservationsUpdateHappens();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1300,17 +1300,18 @@ mozilla::ipc::IPCResult BrowserChild::RecvSizeModeChanged(
|
|||||||
}
|
}
|
||||||
|
|
||||||
mozilla::ipc::IPCResult BrowserChild::RecvChildToParentMatrix(
|
mozilla::ipc::IPCResult BrowserChild::RecvChildToParentMatrix(
|
||||||
const mozilla::Maybe<mozilla::gfx::Matrix4x4>& aMatrix,
|
const Maybe<gfx::Matrix4x4>& aMatrix,
|
||||||
const mozilla::ScreenRect& aTopLevelViewportVisibleRectInBrowserCoords) {
|
const ScreenRect& aTopLevelViewportVisibleRectInBrowserCoords) {
|
||||||
mChildToParentConversionMatrix =
|
mChildToParentConversionMatrix =
|
||||||
LayoutDeviceToLayoutDeviceMatrix4x4::FromUnknownMatrix(aMatrix);
|
LayoutDeviceToLayoutDeviceMatrix4x4::FromUnknownMatrix(aMatrix);
|
||||||
mTopLevelViewportVisibleRectInBrowserCoords =
|
mTopLevelViewportVisibleRectInBrowserCoords =
|
||||||
aTopLevelViewportVisibleRectInBrowserCoords;
|
aTopLevelViewportVisibleRectInBrowserCoords;
|
||||||
|
|
||||||
// Triger an intersection observation since ancestor viewports changed.
|
// Trigger an intersection observation update since ancestor viewports
|
||||||
|
// changed.
|
||||||
if (RefPtr<Document> toplevelDoc = GetTopLevelDocument()) {
|
if (RefPtr<Document> toplevelDoc = GetTopLevelDocument()) {
|
||||||
if (nsPresContext* presContext = toplevelDoc->GetPresContext()) {
|
if (nsPresContext* pc = toplevelDoc->GetPresContext()) {
|
||||||
presContext->RefreshDriver()->IntersectionObservationAdded();
|
pc->RefreshDriver()->EnsureIntersectionObservationsUpdateHappens();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -432,7 +432,7 @@ class nsRefreshDriver final : public mozilla::layers::TransactionIdAllocator,
|
|||||||
EnsureTimerStarted();
|
EnsureTimerStarted();
|
||||||
}
|
}
|
||||||
|
|
||||||
void IntersectionObservationAdded() {
|
void EnsureIntersectionObservationsUpdateHappens() {
|
||||||
// This is enough to make sure that UpdateIntersectionObservations runs at
|
// This is enough to make sure that UpdateIntersectionObservations runs at
|
||||||
// least once. This is presumably the intent of step 5 in [1]:
|
// least once. This is presumably the intent of step 5 in [1]:
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user