| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2  * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 
| 3  * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3  * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 
| 4  * Copyright (C) 2013 Intel Corporation. All rights reserved. | 4  * Copyright (C) 2013 Intel Corporation. All rights reserved. | 
| 5  * | 5  * | 
| 6  * This library is free software; you can redistribute it and/or | 6  * This library is free software; you can redistribute it and/or | 
| 7  * modify it under the terms of the GNU Library General Public | 7  * modify it under the terms of the GNU Library General Public | 
| 8  * License as published by the Free Software Foundation; either | 8  * License as published by the Free Software Foundation; either | 
| 9  * version 2 of the License, or (at your option) any later version. | 9  * version 2 of the License, or (at your option) any later version. | 
| 10  * | 10  * | 
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 386 const StylePropertyShorthand& webkitMarginCollapseShorthand() | 386 const StylePropertyShorthand& webkitMarginCollapseShorthand() | 
| 387 { | 387 { | 
| 388     static const CSSPropertyID marginCollapseProperties[] = { CSSPropertyWebkitM
     arginBeforeCollapse, CSSPropertyWebkitMarginAfterCollapse }; | 388     static const CSSPropertyID marginCollapseProperties[] = { CSSPropertyWebkitM
     arginBeforeCollapse, CSSPropertyWebkitMarginAfterCollapse }; | 
| 389     DEFINE_STATIC_LOCAL(StylePropertyShorthand, webkitMarginCollapseLonghands, (
     CSSPropertyWebkitMarginCollapse, marginCollapseProperties, WTF_ARRAY_LENGTH(marg
     inCollapseProperties))); | 389     DEFINE_STATIC_LOCAL(StylePropertyShorthand, webkitMarginCollapseLonghands, (
     CSSPropertyWebkitMarginCollapse, marginCollapseProperties, WTF_ARRAY_LENGTH(marg
     inCollapseProperties))); | 
| 390     return webkitMarginCollapseLonghands; | 390     return webkitMarginCollapseLonghands; | 
| 391 } | 391 } | 
| 392 | 392 | 
| 393 const StylePropertyShorthand& gridColumnShorthand() | 393 const StylePropertyShorthand& gridColumnShorthand() | 
| 394 { | 394 { | 
| 395     static const CSSPropertyID gridColumnProperties[] = { | 395     static const CSSPropertyID gridColumnProperties[] = { | 
| 396         CSSPropertyGridStart, | 396         CSSPropertyGridColumnStart, | 
| 397         CSSPropertyGridEnd | 397         CSSPropertyGridColumnEnd | 
| 398     }; | 398     }; | 
| 399     DEFINE_STATIC_LOCAL(StylePropertyShorthand, gridColumnLonghands, (CSSPropert
     yGridColumn, gridColumnProperties, WTF_ARRAY_LENGTH(gridColumnProperties))); | 399     DEFINE_STATIC_LOCAL(StylePropertyShorthand, gridColumnLonghands, (CSSPropert
     yGridColumn, gridColumnProperties, WTF_ARRAY_LENGTH(gridColumnProperties))); | 
| 400     return gridColumnLonghands; | 400     return gridColumnLonghands; | 
| 401 } | 401 } | 
| 402 | 402 | 
| 403 const StylePropertyShorthand& gridRowShorthand() | 403 const StylePropertyShorthand& gridRowShorthand() | 
| 404 { | 404 { | 
| 405     static const CSSPropertyID gridRowProperties[] = { | 405     static const CSSPropertyID gridRowProperties[] = { | 
| 406         CSSPropertyGridBefore, | 406         CSSPropertyGridRowStart, | 
| 407         CSSPropertyGridAfter | 407         CSSPropertyGridRowEnd | 
| 408     }; | 408     }; | 
| 409     DEFINE_STATIC_LOCAL(StylePropertyShorthand, gridRowLonghands, (CSSPropertyGr
     idRow, gridRowProperties, WTF_ARRAY_LENGTH(gridRowProperties))); | 409     DEFINE_STATIC_LOCAL(StylePropertyShorthand, gridRowLonghands, (CSSPropertyGr
     idRow, gridRowProperties, WTF_ARRAY_LENGTH(gridRowProperties))); | 
| 410     return gridRowLonghands; | 410     return gridRowLonghands; | 
| 411 } | 411 } | 
| 412 | 412 | 
| 413 const StylePropertyShorthand& gridAreaShorthand() | 413 const StylePropertyShorthand& gridAreaShorthand() | 
| 414 { | 414 { | 
| 415     static const CSSPropertyID gridAreaProperties[] = { | 415     static const CSSPropertyID gridAreaProperties[] = { | 
| 416         CSSPropertyGridStart, | 416         CSSPropertyGridColumnStart, | 
| 417         CSSPropertyGridBefore, | 417         CSSPropertyGridRowStart, | 
| 418         CSSPropertyGridEnd, | 418         CSSPropertyGridColumnEnd, | 
| 419         CSSPropertyGridAfter | 419         CSSPropertyGridRowEnd | 
| 420     }; | 420     }; | 
| 421     DEFINE_STATIC_LOCAL(StylePropertyShorthand, gridAreaLonghands, (CSSPropertyG
     ridArea, gridAreaProperties, WTF_ARRAY_LENGTH(gridAreaProperties))); | 421     DEFINE_STATIC_LOCAL(StylePropertyShorthand, gridAreaLonghands, (CSSPropertyG
     ridArea, gridAreaProperties, WTF_ARRAY_LENGTH(gridAreaProperties))); | 
| 422     return gridAreaLonghands; | 422     return gridAreaLonghands; | 
| 423 } | 423 } | 
| 424 | 424 | 
| 425 const StylePropertyShorthand& webkitMarqueeShorthand() | 425 const StylePropertyShorthand& webkitMarqueeShorthand() | 
| 426 { | 426 { | 
| 427     static const CSSPropertyID marqueeProperties[] = { | 427     static const CSSPropertyID marqueeProperties[] = { | 
| 428         CSSPropertyWebkitMarqueeDirection, | 428         CSSPropertyWebkitMarqueeDirection, | 
| 429         CSSPropertyWebkitMarqueeIncrement, | 429         CSSPropertyWebkitMarqueeIncrement, | 
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 859         map.set(CSSPropertyWebkitFlexBasis, flex); | 859         map.set(CSSPropertyWebkitFlexBasis, flex); | 
| 860 | 860 | 
| 861         Vector<StylePropertyShorthand, 1> flexFlow; | 861         Vector<StylePropertyShorthand, 1> flexFlow; | 
| 862         flexFlow.uncheckedAppend(webkitFlexFlowShorthand()); | 862         flexFlow.uncheckedAppend(webkitFlexFlowShorthand()); | 
| 863         map.set(CSSPropertyWebkitFlexDirection, flexFlow); | 863         map.set(CSSPropertyWebkitFlexDirection, flexFlow); | 
| 864         map.set(CSSPropertyWebkitFlexWrap, flexFlow); | 864         map.set(CSSPropertyWebkitFlexWrap, flexFlow); | 
| 865 | 865 | 
| 866         Vector<StylePropertyShorthand, 2> grid; | 866         Vector<StylePropertyShorthand, 2> grid; | 
| 867         grid.uncheckedAppend(gridAreaShorthand()); | 867         grid.uncheckedAppend(gridAreaShorthand()); | 
| 868         grid.uncheckedAppend(gridColumnShorthand()); | 868         grid.uncheckedAppend(gridColumnShorthand()); | 
| 869         map.set(CSSPropertyGridStart, grid); | 869         map.set(CSSPropertyGridColumnStart, grid); | 
| 870         map.set(CSSPropertyGridEnd, grid); | 870         map.set(CSSPropertyGridColumnEnd, grid); | 
| 871 | 871 | 
| 872         Vector<StylePropertyShorthand, 2> gridAfter; | 872         Vector<StylePropertyShorthand, 2> gridAfter; | 
| 873         gridAfter.uncheckedAppend(gridAreaShorthand()); | 873         gridAfter.uncheckedAppend(gridAreaShorthand()); | 
| 874         gridAfter.uncheckedAppend(gridRowShorthand()); | 874         gridAfter.uncheckedAppend(gridRowShorthand()); | 
| 875         map.set(CSSPropertyGridBefore, gridAfter); | 875         map.set(CSSPropertyGridRowStart, gridAfter); | 
| 876         map.set(CSSPropertyGridAfter, gridAfter); | 876         map.set(CSSPropertyGridRowEnd, gridAfter); | 
| 877 | 877 | 
| 878         Vector<StylePropertyShorthand, 1> marginCollapse; | 878         Vector<StylePropertyShorthand, 1> marginCollapse; | 
| 879         marginCollapse.uncheckedAppend(webkitMarginCollapseShorthand()); | 879         marginCollapse.uncheckedAppend(webkitMarginCollapseShorthand()); | 
| 880         map.set(CSSPropertyWebkitMarginBeforeCollapse, marginCollapse); | 880         map.set(CSSPropertyWebkitMarginBeforeCollapse, marginCollapse); | 
| 881         map.set(CSSPropertyWebkitMarginAfterCollapse, marginCollapse); | 881         map.set(CSSPropertyWebkitMarginAfterCollapse, marginCollapse); | 
| 882 | 882 | 
| 883         Vector<StylePropertyShorthand, 1> marquee; | 883         Vector<StylePropertyShorthand, 1> marquee; | 
| 884         marquee.uncheckedAppend(webkitMarqueeShorthand()); | 884         marquee.uncheckedAppend(webkitMarqueeShorthand()); | 
| 885         map.set(CSSPropertyWebkitMarqueeDirection, marquee); | 885         map.set(CSSPropertyWebkitMarqueeDirection, marquee); | 
| 886         map.set(CSSPropertyWebkitMarqueeIncrement, marquee); | 886         map.set(CSSPropertyWebkitMarqueeIncrement, marquee); | 
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 945 { | 945 { | 
| 946     for (unsigned i = 0; i < shorthands.size(); ++i) { | 946     for (unsigned i = 0; i < shorthands.size(); ++i) { | 
| 947         if (shorthands.at(i).id() == shorthandID) | 947         if (shorthands.at(i).id() == shorthandID) | 
| 948             return i; | 948             return i; | 
| 949     } | 949     } | 
| 950     ASSERT_NOT_REACHED(); | 950     ASSERT_NOT_REACHED(); | 
| 951     return 0; | 951     return 0; | 
| 952 } | 952 } | 
| 953 | 953 | 
| 954 } // namespace WebCore | 954 } // namespace WebCore | 
| OLD | NEW | 
|---|