Revert "[CSSParser] Reject properties that cannot use the fast path."
This reverts commit 1fb83262. Reason for revert: Doesn't seem to improve performance. Original change's description: > [CSSParser] Reject properties that cannot use the fast path. > > When parsing CSS property values, we first do a quick scan to see if the > value is simple enough to avoid tokenizing. This works well for things > like lengths, where the values have predictable structure. If the scan > failed, we do tokenization and parsing as fallback. Hence, for properties > that don't use the fast path, we do some extra work. > > This patch adds an early exit for the fast path code for properties that > we know will almost never use the fast path. > > Bug: 605792 > Change-Id: Iba211c844d5faa2c7272d10fd02b127d5c6abe1b > Reviewed-on: https://chromium-review.googlesource.com/701957 > Reviewed-by: nainar <nainar@chromium.org> > Commit-Queue: Darren Shen <shend@chromium.org> > Cr-Commit-Position: refs/heads/master@{#511324} TBR=nainar@chromium.org,shend@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 605792 Change-Id: If73e39e891c892aef1b745b95f45df8ba242af8c Reviewed-on: https://chromium-review.googlesource.com/746421Reviewed-by:Darren Shen <shend@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#512772}
Showing
Please register or sign in to comment