Skip to content

Commit 3b01922

Browse files
committed
[resize-observer] Tweak naming to include "resize" on algorithm / etc names.
As per suggestion in whatwg/html#8348.
1 parent b1e23c2 commit 3b01922

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

resize-observer-1/Overview.bs

+17-17
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ callback ResizeObserverCallback = undefined (sequence<ResizeObserverEntry> en
247247
</pre>
248248

249249
This callback delivers {{ResizeObserver}}'s notifications. It is invoked by a
250-
<a>broadcast active observations</a> algorithm.
250+
<a>broadcast active resize observations</a> algorithm.
251251

252252
<h3 id="resize-observer-entry-interface">ResizeObserverEntry</h3>
253253

@@ -396,9 +396,9 @@ Content rect for the <a>SVGGraphicsElement</a>s without CSS layout boxes is a re
396396

397397
<h3 id="algorithms">Algorithms</h3>
398398

399-
<h4 id="gather-active-observations-h">Gather active observations at depth</h4>
399+
<h4 id="gather-active-observations-h">Gather active resize observations at depth</h4>
400400

401-
It computes all active observations for a |document|. To <dfn>gather active observations at depth</dfn>, run these steps:
401+
It computes all active resize observations for a |document|. To <dfn>gather active resize observations at depth</dfn>, run these steps:
402402

403403
1. Let |depth| be the depth passed in.
404404

@@ -416,19 +416,19 @@ It computes all active observations for a |document|. To <dfn>gather active obse
416416

417417
3. Else add |observation| to {{ResizeObserver/[[skippedTargets]]}}.
418418

419-
<h4 id="has-active-observations-h">Has active observations</h4>
419+
<h4 id="has-active-observations-h">Has active resize observations</h4>
420420

421-
To determine if {{Document}} <dfn>has active observations</dfn> run these steps:
421+
To determine if {{Document}} <dfn>has active resize observations</dfn> run these steps:
422422

423423
1. For each |observer| in {{Document/[[resizeObservers]]}} run this step:
424424

425425
1. If |observer|.{{ResizeObserver/[[activeTargets]]}} is not empty, return true.
426426

427427
2. return false.
428428

429-
<h4 id="has-skipped-observations-h">Has skipped observations</h4>
429+
<h4 id="has-skipped-observations-h">Has skipped resize observations</h4>
430430

431-
To determine if {{Document}} <dfn>has skipped observations</dfn> run these steps:
431+
To determine if {{Document}} <dfn>has skipped resize observations</dfn> run these steps:
432432

433433
1. For each |observer| in {{Document/[[resizeObservers]]}} run this step:
434434

@@ -466,13 +466,13 @@ run these steps:
466466

467467
1. Set |this|.|contentRect|.top and |this|.contentRect.left to 0.
468468

469-
<h4 id="broadcast-resize-notifications-h">Broadcast active observations</h4>
469+
<h4 id="broadcast-resize-notifications-h">Broadcast active resize observations</h4>
470470

471-
<dfn>broadcast active observations</dfn> delivers all active observations
472-
in a document, and returns the depth of the shallowest broadcast target depth.
471+
<dfn>broadcast active resize observations</dfn> delivers all active resize
472+
observations in a document, and returns the depth of the shallowest broadcast
473+
target depth.
473474

474-
To broadcast active observations for a |document|,
475-
run these steps:
475+
To broadcast active resize observations for a |document|, run these steps:
476476

477477
1. Let |shallowestTargetDepth| be ∞
478478

@@ -635,18 +635,18 @@ For each fully active Document in docs, run the following steps for that Documen
635635

636636
3. Set |depth| to 0
637637

638-
4. <a>Gather active observations at depth</a> |depth| for {{Document}}
638+
4. <a>Gather active resize observations at depth</a> |depth| for {{Document}}
639639

640-
5. Repeat while document <a>has active observations</a>
640+
5. Repeat while document <a>has active resize observations</a>
641641

642-
2. Set |depth| to <a>broadcast active observations</a>.
642+
2. Set |depth| to <a>broadcast active resize observations</a>.
643643

644644
3. Recalc styles
645645

646646
4. Update layout
647647

648-
5. <a>Gather active observations at depth</a> |depth| for {{Document}}
648+
5. <a>Gather active resize observations at depth</a> |depth| for {{Document}}
649649

650-
6. If {{Document}} <a>has skipped observations</a> then <a>deliver resize loop error notification</a>
650+
6. If {{Document}} <a>has skipped resize observations</a> then <a>deliver resize loop error notification</a>
651651

652652
7. Update the rendering or user interface of {{Document}} and its browsing context to reflect the current state.

0 commit comments

Comments
 (0)