Bug 139379

Summary: Fix the parsing of advanced :lang() after r176902
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: New BugsAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, diorahman, kling, mark.lam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch kling: review+

Description Benjamin Poulain 2014-12-07 17:51:44 PST
Fix the parsing of advanced :lang() after r176902
Comment 1 Benjamin Poulain 2014-12-07 20:19:39 PST
Created attachment 242782 [details]
Patch
Comment 2 Mark Lam 2014-12-07 22:59:13 PST
Comment on attachment 242782 [details]
Patch

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

> Source/WebCore/css/CSSParser.cpp:11489
> +        }

If you want this ‘}’, then you should move the one at line 11503 before the #endif.
Comment 3 Benjamin Poulain 2014-12-08 00:22:02 PST
Comment on attachment 242782 [details]
Patch

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

>> Source/WebCore/css/CSSParser.cpp:11489
>> +        }
> 
> If you want this ‘}’, then you should move the one at line 11503 before the #endif.

Oh crap, my bad. I'll fix that before landing.
Comment 4 Andreas Kling 2014-12-08 14:53:29 PST
Comment on attachment 242782 [details]
Patch

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

r=me

> Source/WebCore/ChangeLog:18
> +        The problem is that CSSParserString does not keep the source string alive.
> +        Consequently, the list of language range was accumulating pointers to dead
> +        StringImpls.

Whoops!
Comment 5 Benjamin Poulain 2014-12-08 15:54:27 PST
Committed r176983: <http://trac.webkit.org/changeset/176983>