OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 3 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyBackgroun
dSize, &RenderStyle::backgroundLayers, &RenderStyle::accessBackgroundLayers)); | 1110 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyBackgroun
dSize, &RenderStyle::backgroundLayers, &RenderStyle::accessBackgroundLayers)); |
1111 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyWebkitBac
kgroundSize, &RenderStyle::backgroundLayers, &RenderStyle::accessBackgroundLayer
s)); | 1111 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyWebkitBac
kgroundSize, &RenderStyle::backgroundLayers, &RenderStyle::accessBackgroundLayer
s)); |
1112 | 1112 |
1113 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyWebkitMas
kPositionX, &RenderStyle::maskLayers, &RenderStyle::accessMaskLayers)); | 1113 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyWebkitMas
kPositionX, &RenderStyle::maskLayers, &RenderStyle::accessMaskLayers)); |
1114 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyWebkitMas
kPositionY, &RenderStyle::maskLayers, &RenderStyle::accessMaskLayers)); | 1114 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyWebkitMas
kPositionY, &RenderStyle::maskLayers, &RenderStyle::accessMaskLayers)); |
1115 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyWebkitMas
kSize, &RenderStyle::maskLayers, &RenderStyle::accessMaskLayers)); | 1115 gPropertyWrappers->append(new FillLayersPropertyWrapper(CSSPropertyWebkitMas
kSize, &RenderStyle::maskLayers, &RenderStyle::accessMaskLayers)); |
1116 | 1116 |
1117 gPropertyWrappers->append(new PropertyWrapper<float>(CSSPropertyFontSize, | 1117 gPropertyWrappers->append(new PropertyWrapper<float>(CSSPropertyFontSize, |
1118 // Must pass a specified size to setFontSize if Text Autosizing is enabl
ed, but a computed size | 1118 // Must pass a specified size to setFontSize if Text Autosizing is enabl
ed, but a computed size |
1119 // if text zoom is enabled (if neither is enabled it's irrelevant as the
y're probably the same). | 1119 // if text zoom is enabled (if neither is enabled it's irrelevant as the
y're probably the same). |
1120 // FIXME: Find some way to assert that text zoom isn't activated when Te
xt Autosizing is compiled in. | 1120 // FIXME: Should we introduce an option to pass the computed font size h
ere, allowing consumers to |
1121 #if ENABLE(TEXT_AUTOSIZING) | 1121 // enable text zoom rather than Text Autosizing? See http://crbug.com/22
7545. |
1122 &RenderStyle::specifiedFontSize, | 1122 &RenderStyle::specifiedFontSize, |
1123 #else | |
1124 &RenderStyle::computedFontSize, | |
1125 #endif | |
1126 &RenderStyle::setFontSize)); | 1123 &RenderStyle::setFontSize)); |
1127 gPropertyWrappers->append(new PropertyWrapper<unsigned short>(CSSPropertyWeb
kitColumnRuleWidth, &RenderStyle::columnRuleWidth, &RenderStyle::setColumnRuleWi
dth)); | 1124 gPropertyWrappers->append(new PropertyWrapper<unsigned short>(CSSPropertyWeb
kitColumnRuleWidth, &RenderStyle::columnRuleWidth, &RenderStyle::setColumnRuleWi
dth)); |
1128 gPropertyWrappers->append(new PropertyWrapper<float>(CSSPropertyWebkitColumn
Gap, &RenderStyle::columnGap, &RenderStyle::setColumnGap)); | 1125 gPropertyWrappers->append(new PropertyWrapper<float>(CSSPropertyWebkitColumn
Gap, &RenderStyle::columnGap, &RenderStyle::setColumnGap)); |
1129 gPropertyWrappers->append(new PropertyWrapper<unsigned short>(CSSPropertyWeb
kitColumnCount, &RenderStyle::columnCount, &RenderStyle::setColumnCount)); | 1126 gPropertyWrappers->append(new PropertyWrapper<unsigned short>(CSSPropertyWeb
kitColumnCount, &RenderStyle::columnCount, &RenderStyle::setColumnCount)); |
1130 gPropertyWrappers->append(new PropertyWrapper<float>(CSSPropertyWebkitColumn
Width, &RenderStyle::columnWidth, &RenderStyle::setColumnWidth)); | 1127 gPropertyWrappers->append(new PropertyWrapper<float>(CSSPropertyWebkitColumn
Width, &RenderStyle::columnWidth, &RenderStyle::setColumnWidth)); |
1131 gPropertyWrappers->append(new PropertyWrapper<short>(CSSPropertyWebkitBorder
HorizontalSpacing, &RenderStyle::horizontalBorderSpacing, &RenderStyle::setHoriz
ontalBorderSpacing)); | 1128 gPropertyWrappers->append(new PropertyWrapper<short>(CSSPropertyWebkitBorder
HorizontalSpacing, &RenderStyle::horizontalBorderSpacing, &RenderStyle::setHoriz
ontalBorderSpacing)); |
1132 gPropertyWrappers->append(new PropertyWrapper<short>(CSSPropertyWebkitBorder
VerticalSpacing, &RenderStyle::verticalBorderSpacing, &RenderStyle::setVerticalB
orderSpacing)); | 1129 gPropertyWrappers->append(new PropertyWrapper<short>(CSSPropertyWebkitBorder
VerticalSpacing, &RenderStyle::verticalBorderSpacing, &RenderStyle::setVerticalB
orderSpacing)); |
1133 gPropertyWrappers->append(new PropertyWrapper<int>(CSSPropertyZIndex, &Rende
rStyle::zIndex, &RenderStyle::setZIndex)); | 1130 gPropertyWrappers->append(new PropertyWrapper<int>(CSSPropertyZIndex, &Rende
rStyle::zIndex, &RenderStyle::setZIndex)); |
1134 gPropertyWrappers->append(new PropertyWrapper<short>(CSSPropertyOrphans, &Re
nderStyle::orphans, &RenderStyle::setOrphans)); | 1131 gPropertyWrappers->append(new PropertyWrapper<short>(CSSPropertyOrphans, &Re
nderStyle::orphans, &RenderStyle::setOrphans)); |
1135 gPropertyWrappers->append(new PropertyWrapper<short>(CSSPropertyWidows, &Ren
derStyle::widows, &RenderStyle::setWidows)); | 1132 gPropertyWrappers->append(new PropertyWrapper<short>(CSSPropertyWidows, &Ren
derStyle::widows, &RenderStyle::setWidows)); |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 } | 1317 } |
1321 | 1318 |
1322 int CSSPropertyAnimation::getNumProperties() | 1319 int CSSPropertyAnimation::getNumProperties() |
1323 { | 1320 { |
1324 ensurePropertyMap(); | 1321 ensurePropertyMap(); |
1325 | 1322 |
1326 return gPropertyWrappers->size(); | 1323 return gPropertyWrappers->size(); |
1327 } | 1324 } |
1328 | 1325 |
1329 } | 1326 } |
OLD | NEW |