Bug 32674 - Fix link failure on LTCG builds on Windows for chromium port
Summary: Fix link failure on LTCG builds on Windows for chromium port
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 10:45 PST by Marc-Antoine Ruel
Modified: 2009-12-17 13:52 PST (History)
8 users (show)

See Also:


Attachments
Patch (19.51 KB, patch)
2009-12-17 10:45 PST, Marc-Antoine Ruel
no flags Details | Formatted Diff | Diff
Patch (19.02 KB, patch)
2009-12-17 10:49 PST, Marc-Antoine Ruel
no flags Details | Formatted Diff | Diff
Patch (18.80 KB, patch)
2009-12-17 10:51 PST, Marc-Antoine Ruel
no flags Details | Formatted Diff | Diff
Patch (11.00 KB, patch)
2009-12-17 12:49 PST, Marc-Antoine Ruel
no flags Details | Formatted Diff | Diff
Patch (12.69 KB, patch)
2009-12-17 12:52 PST, Marc-Antoine Ruel
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-Antoine Ruel 2009-12-17 10:45:47 PST
Created attachment 45090 [details]
Patch

Reenable SVGAllInOne.cpp. This required some fixups.

Namely, there was conflicts in constants between HTMLNames and
SVGNames, and conflicts between static functions names.

No new tests as functionality has not changed.
Comment 1 WebKit Review Bot 2009-12-17 10:46:32 PST
Attachment 45090 [details] did not pass style-queue:

Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1
WebCore/svg/SVGAllInOne.cpp:99:  Alphabetical sorting problem.  [build/include_order] [4]
WebCore/svg/SVGAllInOne.cpp:105:  Alphabetical sorting problem.  [build/include_order] [4]
WebCore/svg/SVGAllInOne.cpp:137:  Alphabetical sorting problem.  [build/include_order] [4]
WebCore/svg/SVGAllInOne.cpp:138:  Alphabetical sorting problem.  [build/include_order] [4]
WebCore/svg/SVGAllInOne.cpp:151:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 5
Comment 2 Marc-Antoine Ruel 2009-12-17 10:49:58 PST
Created attachment 45091 [details]
Patch
Comment 3 Marc-Antoine Ruel 2009-12-17 10:51:55 PST
Created attachment 45092 [details]
Patch
Comment 4 WebKit Review Bot 2009-12-17 10:51:59 PST
Attachment 45091 [details] did not pass style-queue:

Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1
WebCore/svg/SVGAllInOne.cpp:152:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1
Comment 5 WebKit Review Bot 2009-12-17 10:52:17 PST
style-queue ran check-webkit-style on attachment 45092 [details] without any errors.
Comment 6 Eric Seidel (no email) 2009-12-17 11:04:20 PST
Comment on attachment 45092 [details]
Patch

Do we have a build-bot which uses this (or that will), otherwise this will certainly break again.

This is kinda an ugly fix, but that's because any of the AllInOne filese are kinda hacks.  What is a LTCG build?  Why should we be prefixing the SVGNames which conflict with HTMLNames instead of the reverse?

It seems that at least some of these changes need comments.  Like the naming of mapSvgAttributeToCSSProperty should have a comment.  maybe we should just share that code using StyledElement.h/StyledElement.cpp instead of renaming our copy?  Or does the copy actually do something different in the SVG case?

This looks fine, but would be nice to hear answers to above before landing.

Better to leave the "Reviewed by" line as the default "Reviewed by NOBODY(OOPS!)" because our scripts like svn-apply, the commit-queue and normal bugzilla-tool land-diff/land-patches know how to fix that up with the proper reviewer from the bug anyway.
Comment 7 Eric Seidel (no email) 2009-12-17 11:05:51 PST
The chromium side of this was:
http://codereview.chromium.org/500099
and:
http://code.google.com/p/chromium/issues/detail?id=30494
Comment 8 Eric Seidel (no email) 2009-12-17 11:06:47 PST
It's possible that Apple's windows builders will want to use a similar optimization.  CCing the Apple windows build folks.
Comment 9 Marc-Antoine Ruel 2009-12-17 11:20:04 PST
LTCG means link time code generation.

SVGNames are the only one conflicting. I use the SVG ones because it is SVG compile units.

I'll look at removing mapSvgAttributeToCSSProperty.
Comment 10 Eric Seidel (no email) 2009-12-17 11:27:06 PST
Thank you very much.  Certainly not required that we remove mapSvgAttributeToCSSProperty, but if it's obvious to share code there, we might as well.
Comment 11 Marc-Antoine Ruel 2009-12-17 12:49:58 PST
Created attachment 45102 [details]
Patch
Comment 12 WebKit Review Bot 2009-12-17 12:51:24 PST
style-queue ran check-webkit-style on attachment 45102 [details] without any errors.
Comment 13 Marc-Antoine Ruel 2009-12-17 12:52:07 PST
Created attachment 45103 [details]
Patch
Comment 15 Eric Seidel (no email) 2009-12-17 12:54:44 PST
Comment on attachment 45103 [details]
Patch

Yay!  Thank you for the update ChangeLog.

I think I would have just made it a protected static member of SVGStyledElement, the callsite in SVGFontFaceElement would not have had to change.

But also think this is totally fine as a free function.

r+
Comment 16 Eric Seidel (no email) 2009-12-17 13:11:31 PST
Comment on attachment 45103 [details]
Patch

Ah.  I keep forgetting you're not a committer.  cq+ too! :)
Comment 17 WebKit Commit Bot 2009-12-17 13:52:26 PST
Comment on attachment 45103 [details]
Patch

Clearing flags on attachment: 45103

Committed r52288: <http://trac.webkit.org/changeset/52288>
Comment 18 WebKit Commit Bot 2009-12-17 13:52:35 PST
All reviewed patches have been landed.  Closing bug.