Closed
Bug 129893
Opened 23 years ago
Closed 23 years ago
Cocoa changes to GFX/layout/view
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hyatt, Assigned: hyatt)
Details
(Keywords: topembed+)
Attachments
(1 file, 1 obsolete file)
12.26 KB,
patch
|
mikepinkerton
:
review+
bugs
:
superreview+
jesup
:
approval+
|
Details | Diff | Splinter Review |
This bug tracks changes to GFX/layout/view for Cocoa.
Assignee | ||
Comment 1•23 years ago
|
||
These changes keep Chimera from crashing, turn off double buffering for
our views, and fix the caret blinking problem in Chimera.
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•23 years ago
|
||
Assignee | ||
Comment 3•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Attachment #73409 -
Attachment is obsolete: true
Updated•23 years ago
|
Assignee | ||
Comment 4•23 years ago
|
||
Ok, since this got + (yay), can I get r/sr here? Pink? Simon? Saari?
Comment 5•23 years ago
|
||
+#ifdef MOZ_WIDGET_COCOA
WindowPtr firstWindow = GetTheWindowList();
if (firstWindow)
::SetGWorld(::GetWindowPort(firstWindow), ::GetMainDevice());
+#else
+ static GrafPtr gGoodPort = nsnull;
+ if (!gGoodPort) {
+ Rect macRect;
+ ::SetRect(&macRect, 0, 0, 2, 2);
+ ::NewGWorld(&gGoodPort, 16, &macRect, nsnull, nsnull, 0);
+ }
+ ::SetGWorld(gGoodPort, nsnull);
+#endif
isn't this backwards? why is the _existing_ code wrapped in MOZ_WIDGET_COCOA?
+#ifndef MOZ_WIDGET_COCOA
::SetOrigin(-mGS->mOffx, -mGS->mOffy); // line order...
+#endif
can you explain this with a comment in the code (and here as well)?
+#ifdef MOZ_WIDGET_COCOA
+ // Emulate the Mac IE behavior of scrolling 2 lines instead of 1
+ // on a button press. This makes scrolling appear smoother and
+ // keeps us competitive with IE.
+ increment *= 2;
+#endif
shouldn't we, um, try to find out why scrolling is so slow? is this a problem
with mozilla as well as chimchim?
+++ view/src/nsView.cpp 11 Mar 2002 22:45:53 -0000
@@ -803,13 +803,13 @@
- }
+ }
did a tab get introduced here by accident?
-//#define NO_DOUBLE_BUFFER
+#ifdef MOZ_WIDGET_COCOA
+#define NO_DOUBLE_BUFFER
+#endif
I'd leave the uncommented version there because a lot of people use that line to
toggle DB on/off. It's what they're used to looking for.
Assignee | ||
Comment 6•23 years ago
|
||
Hahahah, good grief. No wonder that good port stuff was behaving so
oddly. I had it backwards! I need to try that out now and see if I still need
all the code in nsImageMac.cpp.
Assignee | ||
Comment 7•23 years ago
|
||
Ok, so I fixed the ifdef to be #ifndef, and once I did that, I was able to
simplify the code in nsImageMac to not have to ask IsValidPort (I was
being an idiot). All that remains in nsImageMac is the call to set the port
to a known good port (which now works properly with the #ifndef fixup).
Seeking r/sr now with that modification and with leaving the commented
out code in nsViewManager.cpp.
Updated•23 years ago
|
Attachment #73581 -
Flags: review+
Comment 8•23 years ago
|
||
Comment on attachment 73581 [details] [diff] [review]
Better patch.
I still want to see a comment on
+#ifndef MOZ_WIDGET_COCOA
::SetOrigin(-mGS->mOffx, -mGS->mOffy); // line order...
+#endif
both in the code and here in the bug. just so i know what's going on.
Comment 9•23 years ago
|
||
oops, forgot r=pink
Comment 10•23 years ago
|
||
Attachment #73581 -
Flags: superreview+
Comment 11•23 years ago
|
||
Comment on attachment 73581 [details] [diff] [review]
Better patch.
a=rjesup@wgate.com
Please send email to drivers next time
Attachment #73581 -
Flags: approval+
Assignee | ||
Comment 12•23 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 13•23 years ago
|
||
I checked the changes to
gfx/src/mac/nsGfxUtils.h
gfx/src/mac/nsImageMac.cpp
gfx/src/mac/nsRenderingContextMac.cpp
gfx/src/mac/nsRenderingContextMac.h
into CHIMERA_M1_0_BRANCH.
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•