WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
65410
[Qt][WK2] Fix the build afer
r92014
https://bugs.webkit.org/show_bug.cgi?id=65410
Summary
[Qt][WK2] Fix the build afer r92014
Balazs Kelemen
Reported
2011-07-30 04:38:16 PDT
The bug is in Qt. qwindowdefs.h should not define a typedef for such a popular word as Region. The fix is indeed ugly and I hope it would be fixed in Qt soon.
Attachments
Patch
(2.65 KB, patch)
2011-07-30 04:40 PDT
,
Balazs Kelemen
no flags
Details
Formatted Diff
Diff
Patch
(1.95 KB, patch)
2011-07-30 10:32 PDT
,
Balazs Kelemen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Balazs Kelemen
Comment 1
2011-07-30 04:40:55 PDT
Created
attachment 102432
[details]
Patch
Noam Rosenthal
Comment 2
2011-07-30 08:53:30 PDT
Comment on
attachment 102432
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=102432&action=review
> Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp:38 > +// Fix for the intrusive typedef in qwindowdefs.h until it has been fixed in Qt.
Was a bug filed with Qt?
> Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp:40 > +#define Region WebCore::Region > +#endif
Adding "using WebCore::Region" inside the "namespace WebKit" clause should do the trick as well. In either case, I believe this problem is confined to X11, so let's #ifdef it. #ifdef Q_WS_X11 using WebCore::Region; #endif seems a bit less intrusive than a new #define Region :)
Balazs Kelemen
Comment 3
2011-07-30 10:32:29 PDT
Created
attachment 102437
[details]
Patch
Balazs Kelemen
Comment 4
2011-07-30 10:37:08 PDT
(In reply to
comment #2
)
> (From update of
attachment 102432
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=102432&action=review
> > > Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp:38 > > +// Fix for the intrusive typedef in qwindowdefs.h until it has been fixed in Qt. > > Was a bug filed with Qt?
Not yet.
> > > Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp:40 > > +#define Region WebCore::Region > > +#endif > > Adding "using WebCore::Region" inside the "namespace WebKit" clause should do the trick as well.
Good point.
> In either case, I believe this problem is confined to X11, so let's #ifdef it. > > #ifdef Q_WS_X11 > using WebCore::Region; > #endif > > seems a bit less intrusive than a new #define Region :)
These suggestions had been incorporated into the new patch.
Balazs Kelemen
Comment 5
2011-07-30 10:39:54 PDT
Comment on
attachment 102437
[details]
Patch Clearing flags on attachment: 102437 Committed
r92052
: <
http://trac.webkit.org/changeset/92052
>
Balazs Kelemen
Comment 6
2011-07-30 10:40:03 PDT
All reviewed patches have been landed. Closing bug.
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