WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
35762
New port: EFL; adding files to WebCore/plugins/efl (patch 2/2)
https://bugs.webkit.org/show_bug.cgi?id=35762
Summary
New port: EFL; adding files to WebCore/plugins/efl (patch 2/2)
Leandro Pereira
Reported
2010-03-04 12:04:46 PST
+++ This bug was initially created as a clone of
Bug #35087
+++ Subject says it all.
Attachments
Add EFL port files to WebCore/plugins/efl (patch 2/2)
(21.95 KB, patch)
2010-03-04 12:05 PST
,
Leandro Pereira
zecke
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Leandro Pereira
Comment 1
2010-03-04 12:05:57 PST
Created
attachment 50045
[details]
Add EFL port files to WebCore/plugins/efl (patch 2/2)
Holger Freyther
Comment 2
2010-03-09 20:11:46 PST
Comment on
attachment 50045
[details]
Add EFL port files to WebCore/plugins/efl (patch 2/2) Patch mostly looks fine. I have minir comments inside...
> +X11EmbedContainer::~X11EmbedContainer() > +{ > + setVisible(false); > + > + if (client()) { > + XUnmapWindow(x11Info()->display(), client()); > + XReparentWindow(x11Info()->display(), client(), rootWindow(), 0, 0); > + } > + > + delete m_focusProxy; > + delete m_clientWindow;
It would make sense to make m_focusProxy and m_clientWindow OwnPtr here.
> +class X11Info { > +public: > + Display* display() { return (Display*) ecore_x_display_get(); } > + Visual* visual() { return (Visual*) m_att.visual; } > + unsigned int depth() { return m_att.depth; } > + Colormap colormap() { return m_att.colormap; } > + unsigned int x11Time() { return ecore_x_current_time_get(); } > + > +private: > + X11Info(WinId owner) > + { > + m_owner = owner; > + ecore_x_window_attributes_get(owner, &m_att); > + m_att.colormap = DefaultColormap(display(), DefaultScreen(display())); > + } > + WinId m_owner; > + Ecore_X_Window_Attributes m_att; > + friend class X11Window; > +};
Is there any reason to not have X11Info more static? Currently you will end up having one instance per plugin, I think having one instance per Screen should be fine?
Leandro Pereira
Comment 3
2010-03-10 11:22:59 PST
(In reply to
comment #2
)
> > +X11EmbedContainer::~X11EmbedContainer() > > +{ (...) > > It would make sense to make m_focusProxy and m_clientWindow OwnPtr here. >
Will do.
> > +class X11Info { (...) > > > Is there any reason to not have X11Info more static? Currently you will end up > having > one instance per plugin, I think having one instance per Screen should be fine?
> I wouldn't bother with this right now, since WebCore/plugins/efl is scheduled to be rewritten.
Holger Freyther
Comment 4
2010-03-14 18:52:40 PDT
(In reply to
comment #3
)
> > I wouldn't bother with this right now, since WebCore/plugins/efl is scheduled > to be rewritten.
If that is the case please us the PluginViewNone.cpp, this way no one needs to spend time on dead and deprecated code.
Holger Freyther
Comment 5
2010-03-14 18:54:49 PDT
Comment on
attachment 50045
[details]
Add EFL port files to WebCore/plugins/efl (patch 2/2) According to the comments the plugin code will be rewritten and I think there is little point reviewing and landing a version that will not be used. If this judgement seem inappropriate please just set the review flag again.
Gustavo Sverzut Barbieri
Comment 6
2010-03-14 19:17:01 PDT
Hi zecke, The current system works, albeit the code is not as perfect as one would want. Going with "none" is loosing functionality. The next system will be our attempt to use Qt and Gtk efforts for windowless flash... the golden goal, but we're holding this since you do know it will takes lots of time to get this working and with great performance. :-)
Gustavo Noronha (kov)
Comment 7
2010-03-15 06:46:46 PDT
(In reply to
comment #6
)
> The current system works, albeit the code is not as perfect as one would want. > Going with "none" is loosing functionality. > > The next system will be our attempt to use Qt and Gtk efforts for windowless > flash... the golden goal, but we're holding this since you do know it will > takes lots of time to get this working and with great performance. :-)
I think what zecke is saying is that we have two options: land a fixed-up version of the current code, or land the rewritten version. EFL has currently no plugin code in the tree, so you won't be loosing anything for now. So, if the golden goal is going to take a while, fixing the issues with the current code to get it landed seems to be worth it =).
Gustavo Sverzut Barbieri
Comment 8
2010-04-12 17:24:13 PDT
Please close this bug as we'll go with Plugin*None as requested by Zecke as soon as #37478 is done.
Leandro Pereira
Comment 9
2010-04-13 06:42:23 PDT
Closing this bug as we'll use the Plugin*None implementation until we have a better Plugin implementation.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug