Bug 118711 - Generate CSS Lexer code that performs identifier matching
Summary: Generate CSS Lexer code that performs identifier matching
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-07-15 22:11 PDT by Ryosuke Niwa
Modified: 2023-07-06 14:15 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-07-15 22:11:31 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/bdbfdcc73187f8d43216148495a51ab725487609

Developers can now write C++ functions code like the following instead of manually branching on the identifier length and on the characters appearing at each position.

SWITCH(characters, nameLength) {
  CASE("skew(") { ... }
  CASE("scale(") { .. }
  CASE("skewx(") { .. }
}

Code generation expands the SWITCH into nested branching statements.
Comment 1 Ahmad Saleem 2023-07-06 14:15:00 PDT
We adopted CSS Parser from Blink, so I think this might not be needed.