Remove 2 bad branches from StringHash::equal() and CaseFoldingHash::equal()
Created attachment 194443 [details] Patch
Created attachment 194645 [details] Patch
*** Bug 111892 has been marked as a duplicate of this bug. ***
Comment on attachment 194645 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=194645&action=review LGTM! > Source/WebCore/html/parser/HTMLTreeBuilderSimulator.cpp:98 > + return equalIgnoringCase(token.data().asStringImpl(), SVGNames::foreignObjectTag.localName().impl()); These are known to never be null, btw.
> > Source/WebCore/html/parser/HTMLTreeBuilderSimulator.cpp:98 > > + return equalIgnoringCase(token.data().asStringImpl(), SVGNames::foreignObjectTag.localName().impl()); > > These are known to never be null, btw. I was not sure so I took the safe option :). I will change to the non-null form before landing. Thank you for the review.
I believe the HTMLParser basically never has any null strings ever. :) Everything is empty at most. In the case of a tag name, the parser will tread <> as a characters in a character token, not as a tag with empty name. Thanks for fixing!
Committed r146702: <http://trac.webkit.org/changeset/146702>
This patch broke Windows build: http://build.webkit.org/builders/Apple%20Win%20Release%20%28Build%29/builds/46465/steps/compile-webkit/logs/stdio 7>WebKitSystemInterface.lib(WebKitSystemInterface.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance 7> Creating library C:\cygwin\home\buildbot\slave\win-release\build\WebKitBuild\Release\lib\WebKit.lib and object C:\cygwin\home\buildbot\slave\win-release\build\WebKitBuild\Release\lib\WebKit.exp 7>WebKit.exp : error LNK2001: unresolved external symbol "bool __cdecl WTF::equalIgnoringCase(class WTF::StringImpl *,unsigned char const *)" (?equalIgnoringCase@WTF@@YA_NPAVStringImpl@1@PBE@Z) 7>C:\cygwin\home\buildbot\slave\win-release\build\WebKitBuild\Release\bin\WebKit.dll : fatal error LNK1120: 1 unresolved externals
(In reply to comment #8) > This patch broke Windows build: I am on it.
Fixed in http://trac.webkit.org/changeset/146705 and http://trac.webkit.org/changeset/146710.
(In reply to comment #10) > Fixed in http://trac.webkit.org/changeset/146705 and http://trac.webkit.org/changeset/146710. Thanks for fixing this.