Skip to content
  • commit-queue@webkit.org's avatar
    Part 1 of: Extend -webkit-user-select with a new value "all" · 73d03132
    commit-queue@webkit.org authored
    <rdar://problem/10161404>
    https://bugs.webkit.org/show_bug.cgi?id=93562
    
    Patch by Alice Cheng <alice_cheng@apple.com> on 2012-08-10
    Reviewed by Dan Bernstein.
    
    Source/WebCore:
    
    Parse the new "all" value for -webkit-user-select
    
    Test: editing/selection/user-select-all-parsing.html
    
    * css/CSSParser.cpp:
    (WebCore::isValidKeywordPropertyAndValue): Add new value all
    * css/CSSPrimitiveValueMappings.h:
    (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Add new value all
    (WebCore::CSSPrimitiveValue::operator EUserSelect): Add one more bit to store the new property value
    * rendering/style/RenderStyleConstants.h: Add new value all
    * rendering/style/StyleRareInheritedData.h: Add new value all
    (StyleRareInheritedData):
    
    Source/WebKit/gtk:
    
    Modify the enum to resolve ambiguous reference
    
    * webkit/webkitwebview.cpp:
    (webkit_web_view_class_init): Modify the ambiguous enum
    (webkit_web_view_select_all): Modify the ambiguous enum
    
    LayoutTests:
    
    Add a test to verify that the new "all" value is parsed correctly.
    
    * editing/selection/user-select-all-parsing-expected.txt: Added.
    * editing/selection/user-select-all-parsing.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    73d03132