DescriptionGet rid of code duplication in LinkRelAttribute
There was a "fast path" that just compared the strings and then another
that split and then compared. The two paths were slightly different for
no obvious reasons which doesn't really follow the spec where the tokens
can be all mixed with each other (except for "shortcut icon" apparently).
Allocating the separate strings for "alternate stylesheet" should not be
an issue.
I also removed the extra constructor, we can just use a default argument
value.
The only behavior change is that now we allow things like "alternate import"
(or dns-prefetch) and just ignore the alternate part when deciding what
to do with the link.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171380
Patch Set 1 #Patch Set 2 : remove inline capacity #Patch Set 3 : only allow one of import or stylesheet to apply #Patch Set 4 : silly #Patch Set 5 : more silly #
Messages
Total messages: 29 (0 generated)
|