Changeset 90966 in webkit
- Timestamp:
- Jul 13, 2011 5:29:55 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r90962 r90966 1 2011-07-13 Mihnea Ovidenie <mihnea@adobe.com> 2 3 [CSSRegions] Parse -webkit-content-order property 4 https://bugs.webkit.org/show_bug.cgi?id=63897 5 6 Reviewed by David Hyatt. 7 8 * fast/regions/script-tests/webkit-content-order-parsing.js: Added. 9 * fast/regions/webkit-content-order-parsing-expected.txt: Added. 10 * fast/regions/webkit-content-order-parsing.html: Added. 11 1 12 2011-07-13 Michael Saboff <msaboff@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r90963 r90966 1 2011-07-13 Mihnea Ovidenie <mihnea@adobe.com> 2 3 [CSSRegions] Parse -webkit-content-order property 4 https://bugs.webkit.org/show_bug.cgi?id=63897 5 6 Reviewed by David Hyatt. 7 8 Test: fast/regions/webkit-content-order-parsing.html 9 10 * css/CSSComputedStyleDeclaration.cpp: 11 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): 12 * css/CSSParser.cpp: 13 (WebCore::CSSParser::parseValue): 14 * css/CSSPropertyNames.in: 15 * css/CSSStyleSelector.cpp: 16 (WebCore::CSSStyleSelector::applyProperty): 17 * rendering/style/RenderStyle.cpp: 18 (WebCore::RenderStyle::diff): 19 * rendering/style/RenderStyle.h: 20 (WebCore::InheritedFlags::regionIndex): 21 (WebCore::InheritedFlags::setRegionIndex): 22 (WebCore::InheritedFlags::initialRegionIndex): 23 * rendering/style/StyleRareNonInheritedData.cpp: 24 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): 25 (WebCore::StyleRareNonInheritedData::operator==): 26 * rendering/style/StyleRareNonInheritedData.h: 27 1 28 2011-07-13 James Robinson <jamesr@chromium.org> 2 29 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r90863 r90966 249 249 #if ENABLE(CSS_REGIONS) 250 250 , CSSPropertyWebkitFlow 251 , CSSPropertyWebkitContentOrder 251 252 #endif 252 253 #if ENABLE(SVG) … … 1668 1669 return primitiveValueCache->createIdentifierValue(CSSValueAuto); 1669 1670 return primitiveValueCache->createValue(style->flowThread(), CSSPrimitiveValue::CSS_STRING); 1671 case CSSPropertyWebkitContentOrder: 1672 return primitiveValueCache->createValue(style->regionIndex(), CSSPrimitiveValue::CSS_NUMBER); 1670 1673 #endif 1671 1674 /* Shorthand properties, currently not supported see bug 13658*/ -
trunk/Source/WebCore/css/CSSParser.cpp
r90937 r90966 1592 1592 case CSSPropertyWebkitFlow: 1593 1593 return parseFlowThread(propId, important); 1594 case CSSPropertyWebkitContentOrder: 1595 validPrimitive = validUnit(value, FInteger, m_strict); 1596 break; 1594 1597 #endif 1595 1598 case CSSPropertyWebkitUserDrag: // auto | none | element -
trunk/Source/WebCore/css/CSSPropertyNames.in
r90863 r90966 329 329 #if defined(ENABLE_CSS_REGIONS) && ENABLE_CSS_REGIONS 330 330 -webkit-flow 331 -webkit-content-order 331 332 #endif 332 333 #if defined(ENABLE_CSS_EXCLUSIONS) && ENABLE_CSS_EXCLUSIONS -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r90863 r90966 4892 4892 else 4893 4893 m_style->setFlowThread(primitiveValue->getStringValue()); 4894 return; 4895 case CSSPropertyWebkitContentOrder: 4896 HANDLE_INHERIT_AND_INITIAL(regionIndex, RegionIndex); 4897 m_style->setRegionIndex(clampToInteger(primitiveValue->getDoubleValue())); 4894 4898 return; 4895 4899 #endif -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r90937 r90966 348 348 #if ENABLE(CSS_REGIONS) 349 349 if (rareNonInheritedData->m_flowThread != other->rareNonInheritedData->m_flowThread 350 || rareNonInheritedData->m_regionThread != other->rareNonInheritedData->m_regionThread) 350 || rareNonInheritedData->m_regionThread != other->rareNonInheritedData->m_regionThread 351 || rareNonInheritedData->m_regionIndex != other->rareNonInheritedData->m_regionIndex) 351 352 return StyleDifferenceLayout; 352 353 #endif -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r90869 r90966 747 747 const AtomicString& flowThread() const { return rareNonInheritedData->m_flowThread; } 748 748 const AtomicString& regionThread() const { return rareNonInheritedData->m_regionThread; } 749 int regionIndex() const { return rareNonInheritedData->m_regionIndex; } 749 750 #endif 750 751 … … 1100 1101 void setFlowThread(const AtomicString& flowThread) { SET_VAR(rareNonInheritedData, m_flowThread, flowThread); } 1101 1102 void setRegionThread(const AtomicString& regionThread) { SET_VAR(rareNonInheritedData, m_regionThread, regionThread); } 1103 void setRegionIndex(int regionIndex) { SET_VAR(rareNonInheritedData, m_regionIndex, regionIndex); } 1102 1104 #endif 1103 1105 … … 1344 1346 static const AtomicString& initialFlowThread() { return nullAtom; } 1345 1347 static const AtomicString& initialRegionThread() { return nullAtom; } 1348 static int initialRegionIndex() { return 0; } 1346 1349 #endif 1347 1350 -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
r90863 r90966 59 59 , m_flowThread(RenderStyle::initialFlowThread()) 60 60 , m_regionThread(RenderStyle::initialRegionThread()) 61 , m_regionIndex(RenderStyle::initialRegionIndex()) 61 62 #endif 62 63 #if ENABLE(CSS_EXCLUSIONS) … … 105 106 , m_flowThread(o.m_flowThread) 106 107 , m_regionThread(o.m_regionThread) 108 , m_regionIndex(o.m_regionIndex) 107 109 #endif 108 110 #if ENABLE(CSS_EXCLUSIONS) … … 158 160 && (m_flowThread == o.m_flowThread) 159 161 && (m_regionThread == o.m_regionThread) 162 && (m_regionIndex == o.m_regionIndex) 160 163 #endif 161 164 #if ENABLE(CSS_EXCLUSIONS) -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.h
r90937 r90966 136 136 AtomicString m_flowThread; 137 137 AtomicString m_regionThread; 138 int m_regionIndex; 138 139 #endif 139 140
Note: See TracChangeset
for help on using the changeset viewer.