[Webkit-unassigned] [Bug 70107] Custom written CSS lexer
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 13 00:24:39 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=70107
--- Comment #25 from Zoltan Herczeg <zherczeg at webkit.org> 2011-12-13 00:24:38 PST ---
> On the downside it requires a copy of the css source -- is a well predicted branch really more expensive than a copy?
This cannot be avoided, since the CSS tokenizer overwrites escape sequences to real characters: Identifier "x\61y" is changed to "xay" before further processing. So we can only avoid buffer dumplication if the input does not contain any escape sequences. We need to take care of prefix and postfix strings as well somehow. And the worst thing is we don't get the ownership of the input string (not even a RefPtr), so it can be freed during tokenizing. What do you think?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list