Bug 59779

Summary: Fix IR->SR typo in enum value (and resulting style fails)
Product: WebKit Reporter: Mike Lawther <mikelawther>
Component: New BugsAssignee: Mike Lawther <mikelawther>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch none

Description Mike Lawther 2011-04-28 22:35:07 PDT
Fix IR->SR typo in enum value (and resulting style fails)
Comment 1 Mike Lawther 2011-04-28 22:35:57 PDT
Created attachment 91638 [details]
Patch
Comment 2 Mike Lawther 2011-04-28 22:37:10 PDT
The real fix here is the typo between the ImageRendering and ShapeRendering enum values. I also de-dented the case statements to fix the resulting style fails.
Comment 3 Ojan Vafai 2011-04-29 08:45:16 PDT
Comment on attachment 91638 [details]
Patch

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

Code change looks fine. Please write a layout test if it's possible. If it's not possible, feel free to remark cq?.

> Source/WebCore/css/CSSPrimitiveValueMappings.h:2918
> +    case SR_AUTO:
> +        m_value.ident = CSSValueAuto;
> +        break;
> +    case SR_OPTIMIZESPEED:

Is it not possible to write a layout test that tests these values? It would be nice to see a test go green here if possible.
Comment 4 Ojan Vafai 2011-04-29 08:46:22 PDT
Comment on attachment 91638 [details]
Patch

Oh. nm. I see now that the enum values are actually the same.
Comment 5 WebKit Commit Bot 2011-04-29 09:15:47 PDT
Comment on attachment 91638 [details]
Patch

Clearing flags on attachment: 91638

Committed r85327: <http://trac.webkit.org/changeset/85327>
Comment 6 WebKit Commit Bot 2011-04-29 09:15:52 PDT
All reviewed patches have been landed.  Closing bug.