Bug 93235 - Handle variables in CSSParser::parseValidPrimitive(), preventing null return value.
Summary: Handle variables in CSSParser::parseValidPrimitive(), preventing null return ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Luke Macpherson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 01:40 PDT by Luke Macpherson
Modified: 2012-08-06 18:57 PDT (History)
6 users (show)

See Also:


Attachments
Patch (3.68 KB, patch)
2012-08-06 01:43 PDT, Luke Macpherson
no flags Details | Formatted Diff | Diff
Patch (3.72 KB, patch)
2012-08-06 16:40 PDT, Luke Macpherson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Macpherson 2012-08-06 01:40:20 PDT
Handle variables in CSSParser::parseValidPrimitive(), preventing null return value.
Comment 1 Luke Macpherson 2012-08-06 01:43:31 PDT
Created attachment 156623 [details]
Patch
Comment 2 Tony Chang 2012-08-06 02:21:33 PDT
Comment on attachment 156623 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=156623&action=review

> Source/WebCore/css/CSSParser.cpp:1642
> +    if (value->unit == CSSPrimitiveValue::CSS_VARIABLE_NAME)

Why are variables a unit type?  I think I need to study how variables are implemented a bit before I'm qualified to review this.  dglazkov can probably review this before I get to it tomorrow.

> LayoutTests/fast/css/variables/invalid-font-reference.html:2
> +<script>
> +if (window.testRunner)

Nit: We normally include the <!DOCTYPE html> and <html> tag for new tests unless you're intentionally testing quirks mode.
Comment 3 Luke Macpherson 2012-08-06 16:40:46 PDT
Created attachment 156792 [details]
Patch
Comment 4 WebKit Review Bot 2012-08-06 18:57:43 PDT
Comment on attachment 156792 [details]
Patch

Clearing flags on attachment: 156792

Committed r124833: <http://trac.webkit.org/changeset/124833>
Comment 5 WebKit Review Bot 2012-08-06 18:57:47 PDT
All reviewed patches have been landed.  Closing bug.