Closed
Bug 70219
Opened 25 years ago
Closed 24 years ago
nsIMarkupDocumentViewer::zoom should be exposed through nsIDOMWindow
Categories
(Core Graveyard :: Embedding: APIs, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.1alpha
People
(Reporter: jud, Assigned: aaronlev)
References
()
Details
(Whiteboard: ready for r=)
Attachments
(1 file, 1 obsolete file)
2.31 KB,
patch
|
jud
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
nsIMarkupDocumentViewer::zoom is private. This needs to be exposed through
nsIDOMWindow. nsIDOMWindow::Zoom should just call down through, probably,
nsIDocShell's zoom method.
Assignee | ||
Comment 3•25 years ago
|
||
Jud, this isn't going to make it into .9. I'm downgrading it because there is a
font prefs API.
I assume you want this to take the place of the
proposed nsIWebBrowserAccessibility (bug 71737).
Status: NEW → ASSIGNED
Keywords: mozilla0.9
OS: Linux → All
Priority: -- → P2
Target Milestone: --- → mozilla1.1
![]() |
Reporter | |
Comment 4•24 years ago
|
||
ahh. if you don't need per window zoom capability, let's just invalidate this
bug. I filed this because I thought you said we needed this on a per window
basis?
Assignee | ||
Comment 6•24 years ago
|
||
Yes, I would prefer to have it exposed on a per-window basis, but is it really
okay to add methods to nsIDOMWindow?
![]() |
||
Comment 8•24 years ago
|
||
Correction: Changing QA contact for the Embed API bugs to David Epstein.
Assignee | ||
Comment 10•24 years ago
|
||
Jud, is it still okay to add this method to nsIDOMWindow?
![]() |
Reporter | |
Comment 11•24 years ago
|
||
sure is.
Assignee | ||
Comment 12•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Whiteboard: ready for r=, sr=
Comment 13•24 years ago
|
||
Sure, from an API frozen-ness point of view it's fine to change
nsIDOMWindowInternal, but why would we need this? I'm sure this will break
existing pages since this will predefine a global zoom variable in all scripts
out there, so anyone that uses a variable named zoom and doesn't declare it will
end up either changing the font sizes, or get an exception thrown in their face
if they're setting zoom to a value that's not convertable to a float. I don't
like this, do we actually have a reason for doing this? Does this need to be
scriptable?
Assignee | ||
Comment 14•24 years ago
|
||
Johhny,
It doesn't need to be scriptable, but it's for embeddors. Is there a better place?
We don't need to do zoom as an attribute, either. I would be fine with getZoom()
and setZoom()
Comment 15•24 years ago
|
||
Hmm, ok, I'm fine with adding this as a [noscript] attribute, but could we
rename this to |textZoom| or something less generic than just |zoom|?
Assignee | ||
Comment 16•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Attachment #64963 -
Attachment is obsolete: true
Comment 17•24 years ago
|
||
Comment on attachment 64999 [details] [diff] [review]
With Johnny's improvements
> attribute DOMString name;
>+ /**
>+ * Set/Get the document scale factor. When setting this attribute, a
>+ * NS_ERROR_NOT_IMPLEMENTED error may be returned by implementations
>+ * not supporting zoom. Implementations not supporting zoom should return
>+ * 1.0 all the time for the Get operation. 1.0 is equals normal size, i.e. no zoom.
>+ */
>+ [noscript] attribute float textZoom;
>+
> readonly attribute long scrollX;
> readonly attribute long scrollY;
>
Please push |textZoom| out to line up with the rest of the attributes.
>+ if (markupViewer)
>+ return markupViewer->GetTextZoom(aZoom);
Add braces around this (both places), even if it's only one line, just like the
rest (or most at least) of the nsGlobalWindow.cpp code does.
With that, sr=jst
Attachment #64999 -
Flags: superreview+
Assignee | ||
Comment 18•24 years ago
|
||
Okay, done. Now looking for r=
Whiteboard: ready for r=, sr= → ready for r=
![]() |
||
Comment 19•24 years ago
|
||
changed qa contact to Ashish. nsIDomWindow is his area.
QA Contact: depstein → ashishbhatt
![]() |
Reporter | |
Updated•24 years ago
|
Attachment #64999 -
Flags: review+
Assignee | ||
Comment 20•24 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•