Changeset 105370 in webkit


Ignore:
Timestamp:
Jan 18, 2012 6:02:04 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Save two ID checks on CSS Min/Width property validation
https://bugs.webkit.org/show_bug.cgi?id=76565

The same validation is done again in the next case statement. Check for
CSSValueIntrinsic and CSSValueMinIntrinsic was done twice when the value
is a number.

Patch by Thiago Marcos P. Santos <tmpsantos@gmail.com> on 2012-01-18
Reviewed by Andreas Kling.

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseValue):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r105366 r105370  
     12012-01-18  Thiago Marcos P. Santos  <tmpsantos@gmail.com>
     2
     3        Save two ID checks on CSS Min/Width property validation
     4        https://bugs.webkit.org/show_bug.cgi?id=76565
     5
     6        The same validation is done again in the next case statement. Check for
     7        CSSValueIntrinsic and CSSValueMinIntrinsic was done twice when the value
     8        is a number.
     9
     10        Reviewed by Andreas Kling.
     11
     12        * css/CSSParser.cpp:
     13        (WebCore::CSSParser::parseValue):
     14
    1152012-01-18  Dana Jansens  <danakj@chromium.org>
    216
  • trunk/Source/WebCore/css/CSSParser.cpp

    r105135 r105370  
    13161316    case CSSPropertyWebkitMaxLogicalWidth:
    13171317    case CSSPropertyWebkitMaxLogicalHeight:
    1318         if (id == CSSValueNone || id == CSSValueIntrinsic || id == CSSValueMinIntrinsic) {
     1318        if (id == CSSValueNone) {
    13191319            validPrimitive = true;
    13201320            break;
Note: See TracChangeset for help on using the changeset viewer.