WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
67848
[chromium] Workaround for String/HashSet/StringHash #include order glitch
https://bugs.webkit.org/show_bug.cgi?id=67848
Summary
[chromium] Workaround for String/HashSet/StringHash #include order glitch
Iain Merrick
Reported
2011-09-09 07:50:41 PDT
[chromium] Workaround for String/HashSet/StringHash #include order glitch
Attachments
Patch
(1.68 KB, patch)
2011-09-09 07:55 PDT
,
Iain Merrick
kbr
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Iain Merrick
Comment 1
2011-09-09 07:55:42 PDT
Created
attachment 106869
[details]
Patch
Iain Merrick
Comment 2
2011-09-09 07:56:55 PDT
Kind of a long explanation for a one-line change, but it's bit of a head-scratcher.
Nat Duca
Comment 3
2011-09-09 08:13:05 PDT
+kbr who knows this file pretty well.
Iain Merrick
Comment 4
2011-09-09 08:39:42 PDT
Simple version: nobody actually includes StringHash.h! So this doesn't compile: #include <wtf/HashSet.h> #include <wtf/text/WTFString.h> class ScoobyDoo { HashSet<String> scrappy; }; #include <wtf/text/StringHash.h> I think this *does* mean we were using the wrong hash traits. The only core header that includes StringHash.h is WTFThreadData.h, which is why it showed up when I had thread-related code and GraphicsContext3D in the same .cpp file.
Kenneth Russell
Comment 5
2011-09-09 14:48:27 PDT
Comment on
attachment 106869
[details]
Patch This seems awfully suspicious because there are some files (like Extensions3DChromium.cpp) which compile just fine and include only their header, GraphicsContext3D.h and GraphicsContext3DPrivate.h -- and GraphicsContext3DPrivate.h already includes GraphicsContext3D.h. Could you please continue to investigate the underlying problem rather than committing this workaround, which isn't necessary for the sources currently in the tree?
James Robinson
Comment 6
2011-09-09 14:50:16 PDT
Comment on
attachment 106869
[details]
Patch If there's a problem with the string headers, fix the string headers.
Iain Merrick
Comment 7
2011-09-12 04:15:54 PDT
Here's the fix for the string headers:
https://bugs.webkit.org/show_bug.cgi?id=67851
Kenneth Russell
Comment 8
2011-09-12 11:51:22 PDT
(In reply to
comment #7
)
> Here's the fix for the string headers:
https://bugs.webkit.org/show_bug.cgi?id=67851
Thanks. After looking at the comments on that other bug it seems that there was a deliberate decision to avoid including the hash traits from all files which include WTFString.h. Given that, I think this fix to GraphicsContext3DPrivate.h is the right thing to do. I'll r+ this and you can close the other one as WontFix.
Iain Merrick
Comment 9
2011-09-14 09:28:25 PDT
Obsoleted by
https://bugs.webkit.org/show_bug.cgi?id=67851
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