Closed
Bug 683085
Opened 14 years ago
Closed 14 years ago
NativeParentWidget used incorrectly in Widget Qt port
Categories
(Core Graveyard :: Widget: Qt, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla9
People
(Reporter: romaxa, Assigned: romaxa)
Details
Attachments
(1 file, 1 obsolete file)
4.23 KB,
patch
|
romaxa
:
review+
|
Details | Diff | Splinter Review |
Currently we are casting aNativeParent widget to MozQWidget and trying to get Receiver in createQWidget function, which is going to be incorrect in case of embedding (when nativeParent will be just QGraphicsWidget from 3rd party embedding application)
Assignee | ||
Comment 1•14 years ago
|
||
Also created Magic parent widget handle, in order to make it possible to init mozqwidget without any parent (windowless embedding).
Comment 2•14 years ago
|
||
Comment on attachment 556753 [details] [diff] [review]
Fix embedding widget initialization in Qt port
Review of attachment 556753 [details] [diff] [review]:
-----------------------------------------------------------------
::: widget/src/qt/nsWindow.cpp
@@ +136,5 @@
> #define GLdouble_defined 1
> #include "Layers.h"
> #include "LayerManagerOGL.h"
>
> +#define PARENTLESS_WIDGET (void*)0x13579
What the hell is this? ;D
Assignee | ||
Comment 3•14 years ago
|
||
it is the hack, in order to allow to create nsIWidget without native and non-native parent,
Current code like this: http://mxr.mozilla.org/mozilla-central/source/embedding/browser/webBrowser/nsWebBrowser.cpp#1120
does not allow us to create BaseWindow without any parent, but that would be useful for windowless embedding or creating simple rendering base and get rendered layout from Layout::RenderDocument API...
This hack simply allow to pass that narrow place and detect this mode.
Comment 4•14 years ago
|
||
Comment on attachment 556753 [details] [diff] [review]
Fix embedding widget initialization in Qt port
Review of attachment 556753 [details] [diff] [review]:
-----------------------------------------------------------------
r+ if you add a comment about that value.
::: widget/src/qt/nsWindow.cpp
@@ +136,5 @@
> #define GLdouble_defined 1
> #include "Layers.h"
> #include "LayerManagerOGL.h"
>
> +#define PARENTLESS_WIDGET (void*)0x13579
You need to comment why this value is picked.
Attachment #556753 -
Flags: review?(doug.turner) → review+
Assignee | ||
Comment 5•14 years ago
|
||
Moving r+
Attachment #556753 -
Attachment is obsolete: true
Attachment #560857 -
Flags: review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 6•14 years ago
|
||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 7•14 years ago
|
||
Target Milestone: --- → mozilla9
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•