Changeset 442

Show
Ignore:
Timestamp:
08/19/08 09:49:01 (4 months ago)
Author:
mbensi
Message:

2008-08-19 Mario Bensi <mbensi@pleyo.com>

Reviewed by Olivier DOLE.
fix ticket #265

  • OrigynWebBrowser/Api/DefaultPolicyDelegate.cpp:
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/GeneratedSources/CMakeLists.txt

    r436 r442  
    458458            DEPENDS ${CMAKE_SOURCE_DIR}/WebCore/html/HTMLTagNames.in ${CMAKE_SOURCE_DIR}/WebCore/html/HTMLAttributeNames.in 
    459459        ) 
    460      ENDIF (HTML_FEATURES) 
     460    ENDIF (HTML_FEATURES) 
     461     
     462    IF (WEBKIT_USE_SVG) 
     463        ADD_CUSTOM_COMMAND (OUTPUT ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.h ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.c 
     464            WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/generated_sources/WebCore 
     465            COMMAND cp ${CMAKE_SOURCE_DIR}/WebCore/css/CSSValueKeywords.in ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.in 
     466            COMMAND perl -ne 'print lc' ${CMAKE_SOURCE_DIR}/WebCore/css/SVGCSSValueKeywords.in > ${CMAKE_BINARY_DIR}/generated_sources/WebCore/SVGCSSValueKeywords.in 
     467            COMMAND cat ${CMAKE_BINARY_DIR}/generated_sources/WebCore/SVGCSSValueKeywords.in >> ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.in 
     468            COMMAND perl ${CMAKE_SOURCE_DIR}/WebCore/css/makevalues.pl 
     469            DEPENDS ${CMAKE_SOURCE_DIR}/WebCore/css/SVGCSSValueKeywords.in 
     470        ) 
     471         
     472        ADD_CUSTOM_COMMAND (OUTPUT ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.cpp ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.h 
     473            WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/generated_sources/WebCore 
     474            COMMAND cp ${CMAKE_SOURCE_DIR}/WebCore/css/CSSPropertyNames.in ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
     475            COMMAND cat ${CMAKE_SOURCE_DIR}/WebCore/css/SVGCSSPropertyNames.in >> ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
     476            COMMAND cat ${CMAKE_SOURCE_DIR}/WebCore/css/DashboardSupportCSSPropertyNames.in >> ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
     477            COMMAND perl ${CMAKE_SOURCE_DIR}/WebCore/css/makeprop.pl 
     478            DEPENDS ${CMAKE_SOURCE_DIR}/WebCore/css/CSSPropertyNames.in 
     479        ) 
     480     
     481    ELSE (WEBKIT_USE_SVG) 
     482     
     483        ADD_CUSTOM_COMMAND (OUTPUT ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.h ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.c 
     484            WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/generated_sources/WebCore 
     485            COMMAND cp ${CMAKE_SOURCE_DIR}/WebCore/css/CSSValueKeywords.in ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.in 
     486            COMMAND perl ${CMAKE_SOURCE_DIR}/WebCore/css/makevalues.pl 
     487            DEPENDS ${CMAKE_SOURCE_DIR}/WebCore/css/CSSValueKeywords.in 
     488        ) 
     489         
     490        ADD_CUSTOM_COMMAND (OUTPUT ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.cpp ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.h 
     491            WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/generated_sources/WebCore 
     492            COMMAND cp ${CMAKE_SOURCE_DIR}/WebCore/css/CSSPropertyNames.in ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
     493            COMMAND cat ${CMAKE_SOURCE_DIR}/WebCore/css/DashboardSupportCSSPropertyNames.in >> ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
     494            COMMAND perl ${CMAKE_SOURCE_DIR}/WebCore/css/makeprop.pl 
     495            DEPENDS ${CMAKE_SOURCE_DIR}/WebCore/css/CSSPropertyNames.in 
     496        ) 
     497    ENDIF (WEBKIT_USE_SVG) 
     498      
    461499ELSE (NOT WEBKIT_USE_HTML_EXTENSION) 
    462500    INCLUDE (${CMAKE_SOURCE_DIR}/HtmlExt/Resources/CMakeLists.txt) 
     
    470508) 
    471509 
    472  
    473 ADD_CUSTOM_COMMAND (OUTPUT ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.h ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.c 
    474     WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/generated_sources/WebCore 
    475     COMMAND cp ${CMAKE_SOURCE_DIR}/WebCore/css/CSSValueKeywords.in ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.in 
    476     COMMAND perl -ne 'print lc' ${CMAKE_SOURCE_DIR}/WebCore/css/SVGCSSValueKeywords.in > ${CMAKE_BINARY_DIR}/generated_sources/WebCore/SVGCSSValueKeywords.in 
    477     COMMAND cat ${CMAKE_BINARY_DIR}/generated_sources/WebCore/SVGCSSValueKeywords.in >> ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.in 
    478     COMMAND perl ${CMAKE_SOURCE_DIR}/WebCore/css/makevalues.pl 
    479     DEPENDS ${CMAKE_SOURCE_DIR}/WebCore/css/SVGCSSValueKeywords.in 
    480 ) 
    481  
    482 IF (WEBKIT_USE_SVG) 
    483     ADD_CUSTOM_COMMAND (OUTPUT ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.cpp ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.h 
    484         WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/generated_sources/WebCore 
    485         COMMAND cp ${CMAKE_SOURCE_DIR}/WebCore/css/CSSPropertyNames.in ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
    486         COMMAND cat ${CMAKE_SOURCE_DIR}/WebCore/css/SVGCSSPropertyNames.in >> ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
    487         COMMAND cat ${CMAKE_SOURCE_DIR}/WebCore/css/DashboardSupportCSSPropertyNames.in >> ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
    488         COMMAND perl ${CMAKE_SOURCE_DIR}/WebCore/css/makeprop.pl 
    489         DEPENDS ${CMAKE_SOURCE_DIR}/WebCore/css/CSSPropertyNames.in 
    490     ) 
    491  
    492 ELSE (WEBKIT_USE_SVG) 
    493     ADD_CUSTOM_COMMAND (OUTPUT ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.cpp ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.h 
    494         WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/generated_sources/WebCore 
    495         COMMAND cp ${CMAKE_SOURCE_DIR}/WebCore/css/CSSPropertyNames.in ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
    496         COMMAND cat ${CMAKE_SOURCE_DIR}/WebCore/css/DashboardSupportCSSPropertyNames.in >> ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSPropertyNames.in 
    497         COMMAND perl ${CMAKE_SOURCE_DIR}/WebCore/css/makeprop.pl 
    498         DEPENDS ${CMAKE_SOURCE_DIR}/WebCore/css/CSSPropertyNames.in 
    499     ) 
    500      
    501 #    ADD_CUSTOM_COMMAND (OUTPUT ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.h ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.c 
    502 #        WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/generated_sources/WebCore 
    503 #        COMMAND cp ${CMAKE_SOURCE_DIR}/WebCore/css/CSSValueKeywords.in ${CMAKE_BINARY_DIR}/generated_sources/WebCore/CSSValueKeywords.in 
    504 #        COMMAND perl -ne 'print lc' ${CMAKE_SOURCE_DIR}/WebCore/css/SVGCSSValueKeywords.in > ${CMAKE_BINARY_DIR}/generated_sources/WebCore/SVGCSSValueKeywords.in 
    505 #        COMMAND perl ${CMAKE_SOURCE_DIR}/WebCore/css/makevalues.pl 
    506 #        DEPENDS ${CMAKE_SOURCE_DIR}/WebCore/css/SVGCSSValueKeywords.in 
    507 #    ) 
    508 ENDIF (WEBKIT_USE_SVG) 
    509510 
    510511 
  • trunk/WebCore/css/CSSParser.cpp

    r431 r442  
    15851585#if ENABLE(SVG) 
    15861586    default: 
     1587#ifdef __HTML_EXT__ 
     1588        if(!parsePleyoValue(propId, important)) 
     1589            return parseSVGValue(propId, important); 
     1590        return true; 
     1591#else 
    15871592        return parseSVGValue(propId, important); 
     1593#endif 
     1594#else 
     1595#ifdef __HTML_EXT__ 
     1596    default: 
     1597        return parsePleyoValue(propId, important); 
     1598#endif 
    15881599#endif 
    15891600    } 
  • trunk/WebCore/css/CSSParser.h

    r431 r442  
    134134#endif 
    135135 
     136#ifdef __HTML_EXT__ 
     137        bool parsePleyoValue(int propId, bool important); 
     138#endif 
     139 
    136140        // CSS3 Parsing Routines (for properties specific to CSS3) 
    137141        bool parseShadow(int propId, bool important); 
  • trunk/WebCore/css/CSSStyleSelector.cpp

    r437 r442  
    49154915#if ENABLE(SVG) 
    49164916    default: 
     4917#ifdef __HTML_EXT__ 
     4918        if(!applyPleyoProperty(id, value)) 
     4919            // Try the SVG properties 
     4920            applySVGProperty(id, value); 
     4921#else 
    49174922        // Try the SVG properties 
    49184923        applySVGProperty(id, value); 
     4924#endif 
     4925#else 
     4926#ifdef __HTML_EXT__ 
     4927    default: 
     4928        applyPleyoProperty(id, value); 
     4929#endif 
    49194930#endif 
    49204931    } 
  • trunk/WebCore/css/CSSStyleSelector.h

    r431 r442  
    238238        void applySVGProperty(int id, CSSValue*); 
    239239#endif 
     240#ifdef __HTML_EXT__ 
     241        bool applyPleyoProperty(int id, CSSValue*); 
     242#endif 
    240243 
    241244        StyleImage* styleImage(CSSValue* value); 
  • trunk/WebKit/ChangeLogOWB

    r441 r442  
     12008-08-19  Mario Bensi  <mbensi@pleyo.com> 
     2 
     3        Reviewed by Olivier DOLE. 
     4        fix ticket #265 
     5 
     6        * OrigynWebBrowser/Api/DefaultPolicyDelegate.cpp: 
     7 
    182008-08-18  Olivier DOLE  <odole@pleyo.com> 
    29 
  • trunk/WebKit/OrigynWebBrowser/Api/DefaultPolicyDelegate.cpp

    r243 r442  
    4040#include <sys/types.h>  
    4141#include <sys/stat.h>  
    42 #include <unistd.h> 
     42 
     43#ifdef _MSC_VER  
     44 #ifndef S_ISDIR  
     45 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)  
     46 #endif  
     47 #else  
     48 #include <unistd.h>  
     49#endif 
     50 
    4351#include DEEPSEE_INCLUDE 
    4452