Skip to content
  • alexis.menard@openbossa.org's avatar
    remove CSSBorderImageValue · 0420aedf
    alexis.menard@openbossa.org authored
    https://bugs.webkit.org/show_bug.cgi?id=75563
    
    Reviewed by Tony Chang.
    
    Source/WebCore:
    
    Remove CSSBorderImageValue as border-image is a shorthand therefore we don't
    need a dedicated CSS class type for it. CSSBorderImageValue was here for
    -webkit-border-image which is not a shorthand. This is the first step to move border-image
    close to a correct shorthand implementation while keeping -webkit-border-image being a regular
    CSS property.
    
    No new tests : It's a refactor, existing tests should cover it.
    
    * CMakeLists.txt:
    * GNUmakefile.list.am:
    * Target.pri:
    * WebCore.gypi:
    * WebCore.order:
    * WebCore.vcproj/WebCore.vcproj:
    * WebCore.xcodeproj/project.pbxproj:
    * css/CSSAllInOne.cpp:
    * css/CSSBorderImage.cpp: Added.
    (WebCore::createBorderImageValue):
    * css/CSSBorderImage.h: Added.
    * css/CSSBorderImageValue.cpp: Removed.
    * css/CSSBorderImageValue.h: Removed.
    * css/CSSComputedStyleDeclaration.cpp:
    (WebCore::valueForNinePieceImage):
    * css/CSSParser.cpp:
    (WebCore::BorderImageParseContext::commitBorderImage):
    * css/CSSStyleSelector.cpp:
    (WebCore::CSSStyleSelector::mapNinePieceImage):
    * css/CSSValue.cpp:
    (WebCore::CSSValue::addSubresourceStyleURLs):
    (WebCore::CSSValue::cssText):
    (WebCore::CSSValue::destroy):
    * css/CSSValue.h:
    
    LayoutTests:
    
    Modify the expected output as now border-image is a CSSValueList.
    
    * fast/css/getComputedStyle/getComputedStyle-border-image-expected.txt:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105502 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0420aedf