Bug 101080 - Color-profile property triggers assert
Summary: Color-profile property triggers assert
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Florin Malita
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 11:46 PDT by Florin Malita
Modified: 2012-11-04 05:27 PST (History)
10 users (show)

See Also:


Attachments
Asserts on debug builds. (205 bytes, text/html)
2012-11-02 11:46 PDT, Florin Malita
no flags Details
Patch (17.31 KB, patch)
2012-11-02 11:59 PDT, Florin Malita
no flags Details | Formatted Diff | Diff
Patch (3.07 KB, patch)
2012-11-03 11:50 PDT, Florin Malita
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florin Malita 2012-11-02 11:46:17 PDT
Created attachment 172097 [details]
Asserts on debug builds.

Looks like we're not handling CSSPropertyColorProfile in StyleResolver::applySVGProperty():

STDERR: ASSERTION FAILED: unimplemented propertyID: 1357
STDERR: 0
STDERR: ../../third_party/WebKit/Source/WebCore/css/SVGCSSStyleSelector.cpp(596) : void WebCore::StyleResolver::applySVGProperty(WebCore::CSSPropertyID, WebCore::CSSValue*)


Chromium issue: http://code.google.com/p/chromium/issues/detail?id=157492
Comment 1 Florin Malita 2012-11-02 11:59:32 PDT
Created attachment 172101 [details]
Patch
Comment 2 WebKit Review Bot 2012-11-02 12:01:30 PDT
Attachment 172101 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1
Source/WebCore/rendering/style/SVGRenderStyle.h:409:  _colorProfile is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Total errors found: 1 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Florin Malita 2012-11-02 12:10:50 PDT
(In reply to comment #2)
> Source/WebCore/rendering/style/SVGRenderStyle.h:409:  _colorProfile is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]

Just following the local style there.
Comment 4 Dirk Schulze 2012-11-03 07:53:24 PDT
Comment on attachment 172101 [details]
Patch

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

Since we don't handle it at all, why not do the same like for background-enable:

        case CSSPropertyEnableBackground:
            // Silently ignoring this property for now

Some might use at as feature detection. I would rather not enable it in CSSOM, when we don't support it at all.

>> Source/WebCore/rendering/style/SVGRenderStyle.h:409
>> +        unsigned _colorProfile : 1; // EColorProfile
> 
> _colorProfile is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]

Well, it should still be fixed IMHO. Maybe in a preparation patch?
Comment 5 Florin Malita 2012-11-03 11:42:55 PDT
(In reply to comment #4)
> (From update of attachment 172101 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=172101&action=review
> 
> Since we don't handle it at all, why not do the same like for background-enable:
> 
>         case CSSPropertyEnableBackground:
>             // Silently ignoring this property for now

Since I thought we'll eventually add color-profile support, I figured it's best to fix the crash by building the required plumbing.


> Some might use at as feature detection. I would rather not enable it in CSSOM, when we don't support it at all.

Ah, that makes sense. I'll update the patch.

 
> >> Source/WebCore/rendering/style/SVGRenderStyle.h:409
> >> +        unsigned _colorProfile : 1; // EColorProfile
> > 
> > _colorProfile is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
> 
> Well, it should still be fixed IMHO. Maybe in a preparation patch?

Sure, that can be fixed. But we'll be ignoring CSSPropertyColorProfile for now, so it's completely unrelated.
Comment 6 Florin Malita 2012-11-03 11:50:02 PDT
Created attachment 172223 [details]
Patch
Comment 7 WebKit Review Bot 2012-11-04 05:27:22 PST
Comment on attachment 172223 [details]
Patch

Clearing flags on attachment: 172223

Committed r133420: <http://trac.webkit.org/changeset/133420>
Comment 8 WebKit Review Bot 2012-11-04 05:27:26 PST
All reviewed patches have been landed.  Closing bug.