Closed Bug 419483 Opened 17 years ago Closed 17 years ago

getBoxObject for is deprecated - use getBoundingClientRect

Categories

(Toolkit Graveyard :: Microformats, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mkaply, Assigned: mkaply)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch Change to getBoundingClientRect (obsolete) — Splinter Review
I need to switch to using getBoundingClientRect I'm keeping the old way around so Microformats.js in FF3 resembles the one in Operator that works on FF2
Attachment #305556 - Flags: review?(sayrer)
Attached patch Better patch (obsolete) — Splinter Review
There are cases where we come in here and ownerDocument is null. In those cases, we shouldn't be getting the bounding box because it is not valid for the entire document. This case only happens with a particular microformat that is not in Firefox by default so I can't create a specific test for it, because that test would require that the entire page be the microformat (which only happens with hAtom/hFeed). Note, however, that the hidden/not hiddenness of microformats is tested in the testcases that are already present.
Attachment #305556 - Attachment is obsolete: true
Attachment #306660 - Flags: review?(sayrer)
Attachment #305556 - Flags: review?(sayrer)
This is wrong. getBoundingClientRect returns a box with bottom/top/right/left
Attached patch Let's try againSplinter Review
getBoundingClientRect doesn't return a box, so I need to compute width and height.
Attachment #308645 - Flags: review?(sayrer)
Attachment #306660 - Attachment is obsolete: true
Attachment #306660 - Flags: review?(sayrer)
Comment on attachment 308645 [details] [diff] [review] Let's try again r+ assuming this has test coverage
Attachment #308645 - Flags: review?(sayrer) → review+
Comment on attachment 308645 [details] [diff] [review] Let's try again Yes, this has test coverage.
Attachment #308645 - Flags: approval1.9?
Attachment #308645 - Flags: approval1.9? → approval1.9+
Checked in.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: