|
Line 0
WebCore/css/CSSStyleApplicator.cpp_sec1
|
|
|
1 |
/* |
| 2 |
* CSSStyleApplicator.cpp |
| 3 |
* |
| 4 |
* Created on: Dec 9, 2010 |
| 5 |
* Author: macpherson |
| 6 |
*/ |
| 7 |
|
| 8 |
#include "config.h" |
| 9 |
#include "RenderStyle.h" |
| 10 |
#include "CSSPrimitiveValueMappings.h" |
| 11 |
#include "CSSValueList.h" |
| 12 |
#include "CSSStyleApplicator.h" |
| 13 |
|
| 14 |
namespace WebCore { |
| 15 |
|
| 16 |
#define DEFINE_INHERIT(Property) void CSSStyleApplicator::handleInherit##Property |
| 17 |
|
| 18 |
#define DEFINE_INITIAL(Property) void CSSStyleApplicator::handleInitial##Property |
| 19 |
|
| 20 |
#define DEFINE_VALUE(Property) void CSSStyleApplicator::handleValue##Property |
| 21 |
|
| 22 |
#define DEFINE_HANDLE_INHERIT(Property, Setter, Getter) \ |
| 23 |
DEFINE_INHERIT(Property)(RenderStyle* style, RenderStyle* parentStyle) { \ |
| 24 |
style->Setter(parentStyle->Getter()); \ |
| 25 |
} |
| 26 |
|
| 27 |
#define DEFINE_HANDLE_INITIAL(Property, Setter, Getter) \ |
| 28 |
DEFINE_INITIAL(Property)(RenderStyle* style) { \ |
| 29 |
style->Setter(RenderStyle::Getter()); \ |
| 30 |
} |
| 31 |
|
| 32 |
#define DEFINE_HANDLE_VALUE(Property, Setter) \ |
| 33 |
DEFINE_VALUE(Property)(RenderStyle* style, RenderStyle*, CSSValue* value) { \ |
| 34 |
if (value->isPrimitiveValue()) { \ |
| 35 |
CSSPrimitiveValue* p = static_cast<CSSPrimitiveValue*>(value); \ |
| 36 |
style->Setter(*p); \ |
| 37 |
} \ |
| 38 |
} |
| 39 |
|
| 40 |
#define DEFINE_HANDLE_FILL_LAYER_INHERIT(Property, layerType, LayerType, prop, Prop) \ |
| 41 |
DEFINE_INHERIT(Property)(RenderStyle *style, RenderStyle *parentStyle) { \ |
| 42 |
FillLayer* currChild = style->access##LayerType##Layers(); \ |
| 43 |
FillLayer* prevChild = 0; \ |
| 44 |
const FillLayer* currParent = parentStyle->layerType##Layers(); \ |
| 45 |
while (currParent && currParent->is##Prop##Set()) { \ |
| 46 |
if (!currChild) { \ |
| 47 |
/* Need to make a new layer.*/ \ |
| 48 |
currChild = new FillLayer(LayerType##FillLayer); \ |
| 49 |
prevChild->setNext(currChild); \ |
| 50 |
} \ |
| 51 |
currChild->set##Prop(currParent->prop()); \ |
| 52 |
prevChild = currChild; \ |
| 53 |
currChild = prevChild->next(); \ |
| 54 |
currParent = currParent->next(); \ |
| 55 |
} \ |
| 56 |
\ |
| 57 |
while (currChild) { \ |
| 58 |
/* Reset any remaining layers to not have the property set. */ \ |
| 59 |
currChild->clear##Prop(); \ |
| 60 |
currChild = currChild->next(); \ |
| 61 |
} \ |
| 62 |
} |
| 63 |
|
| 64 |
#define DEFINE_HANDLE_FILL_LAYER_INITIAL(Property, layerType, LayerType, prop, Prop) \ |
| 65 |
DEFINE_INITIAL(Property)(RenderStyle *style) { \ |
| 66 |
FillLayer* currChild = style->access##LayerType##Layers(); \ |
| 67 |
currChild->set##Prop(FillLayer::initialFill##Prop(LayerType##FillLayer)); \ |
| 68 |
for (currChild = currChild->next(); currChild; currChild = currChild->next()) \ |
| 69 |
currChild->clear##Prop(); \ |
| 70 |
} |
| 71 |
|
| 72 |
#define DEFINE_HANDLE_FILL_LAYER_VALUE(Property, layerType, LayerType, prop, Prop) \ |
| 73 |
DEFINE_VALUE(Property)(RenderStyle *style, RenderStyle *rootElementStyle, CSSValue *value) { \ |
| 74 |
FillLayer* currChild = style->access##LayerType##Layers(); \ |
| 75 |
FillLayer* prevChild = 0; \ |
| 76 |
if (value->isValueList()) { \ |
| 77 |
/* Walk each value and put it into a layer, creating new layers as needed. */ \ |
| 78 |
CSSValueList* valueList = static_cast<CSSValueList*>(value); \ |
| 79 |
for (unsigned int i = 0; i < valueList->length(); i++) { \ |
| 80 |
if (!currChild) { \ |
| 81 |
/* Need to make a new layer to hold this value */ \ |
| 82 |
currChild = new FillLayer(LayerType##FillLayer); \ |
| 83 |
prevChild->setNext(currChild); \ |
| 84 |
} \ |
| 85 |
mapFill##Prop(style, rootElementStyle, currChild, valueList->itemWithoutBoundsCheck(i)); \ |
| 86 |
prevChild = currChild; \ |
| 87 |
currChild = currChild->next(); \ |
| 88 |
} \ |
| 89 |
} else { \ |
| 90 |
mapFill##Prop(style, rootElementStyle, currChild, value); \ |
| 91 |
currChild = currChild->next(); \ |
| 92 |
} \ |
| 93 |
while (currChild) { \ |
| 94 |
/* Reset all remaining layers to not have the property set. */ \ |
| 95 |
currChild->clear##Prop(); \ |
| 96 |
currChild = currChild->next(); \ |
| 97 |
} \ |
| 98 |
} |
| 99 |
|
| 100 |
#define DEFINE_EQUIVALENT_PROPERTY(Property, Equivalent) \ |
| 101 |
DEFINE_INHERIT(Property)(RenderStyle *style, RenderStyle *parentStyle) {CSSStyleApplicator::handleInherit##Equivalent(style, parentStyle);} \ |
| 102 |
DEFINE_INITIAL(Property)(RenderStyle *style) {CSSStyleApplicator::handleInitial##Equivalent(style);} \ |
| 103 |
DEFINE_VALUE(Property)(RenderStyle *style, RenderStyle *rootElementStyle, CSSValue *value) {CSSStyleApplicator::handleValue##Equivalent(style, rootElementStyle, value);} |
| 104 |
|
| 105 |
|
| 106 |
void CSSStyleApplicator::mapFillAttachment(RenderStyle*, RenderStyle*, FillLayer* layer, CSSValue* value) |
| 107 |
{ |
| 108 |
// XXX check that this is unreachable and then remove |
| 109 |
if (value->cssValueType() == CSSValue::CSS_INITIAL) { |
| 110 |
layer->setAttachment(FillLayer::initialFillAttachment(layer->type())); |
| 111 |
return; |
| 112 |
} |
| 113 |
|
| 114 |
if (!value->isPrimitiveValue()) |
| 115 |
return; |
| 116 |
|
| 117 |
CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); |
| 118 |
switch (primitiveValue->getIdent()) { |
| 119 |
case CSSValueFixed: |
| 120 |
layer->setAttachment(FixedBackgroundAttachment); |
| 121 |
break; |
| 122 |
case CSSValueScroll: |
| 123 |
layer->setAttachment(ScrollBackgroundAttachment); |
| 124 |
break; |
| 125 |
case CSSValueLocal: |
| 126 |
layer->setAttachment(LocalBackgroundAttachment); |
| 127 |
break; |
| 128 |
default: |
| 129 |
return; |
| 130 |
} |
| 131 |
} |
| 132 |
|
| 133 |
void CSSStyleApplicator::mapFillClip(RenderStyle*, RenderStyle*, FillLayer* layer, CSSValue* value) |
| 134 |
{ |
| 135 |
// XXX check that this is unreachable and then remove |
| 136 |
if (value->cssValueType() == CSSValue::CSS_INITIAL) { |
| 137 |
layer->setClip(FillLayer::initialFillClip(layer->type())); |
| 138 |
return; |
| 139 |
} |
| 140 |
|
| 141 |
if (!value->isPrimitiveValue()) |
| 142 |
return; |
| 143 |
|
| 144 |
CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); |
| 145 |
layer->setClip(*primitiveValue); |
| 146 |
} |
| 147 |
|
| 148 |
void CSSStyleApplicator::mapFillComposite(RenderStyle*, RenderStyle*, FillLayer* layer, CSSValue* value) |
| 149 |
{ |
| 150 |
// XXX check that this is unreachable and then remove |
| 151 |
if (value->cssValueType() == CSSValue::CSS_INITIAL) { |
| 152 |
layer->setComposite(FillLayer::initialFillComposite(layer->type())); |
| 153 |
return; |
| 154 |
} |
| 155 |
|
| 156 |
if (!value->isPrimitiveValue()) |
| 157 |
return; |
| 158 |
|
| 159 |
CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); |
| 160 |
layer->setComposite(*primitiveValue); |
| 161 |
} |
| 162 |
|
| 163 |
void CSSStyleApplicator::mapFillOrigin(RenderStyle*, RenderStyle*, FillLayer* layer, CSSValue* value) |
| 164 |
{ |
| 165 |
if (value->cssValueType() == CSSValue::CSS_INITIAL) { |
| 166 |
layer->setOrigin(FillLayer::initialFillOrigin(layer->type())); |
| 167 |
return; |
| 168 |
} |
| 169 |
|
| 170 |
if (!value->isPrimitiveValue()) |
| 171 |
return; |
| 172 |
|
| 173 |
CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); |
| 174 |
layer->setOrigin(*primitiveValue); |
| 175 |
} |
| 176 |
|
| 177 |
void CSSStyleApplicator::mapFillSize(RenderStyle *style, RenderStyle *rootElementStyle, FillLayer* layer, CSSValue* value) |
| 178 |
{ |
| 179 |
if (!value->isPrimitiveValue()) { |
| 180 |
layer->setSizeType(SizeNone); |
| 181 |
return; |
| 182 |
} |
| 183 |
|
| 184 |
CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); |
| 185 |
if (primitiveValue->getIdent() == CSSValueContain) |
| 186 |
layer->setSizeType(Contain); |
| 187 |
else if (primitiveValue->getIdent() == CSSValueCover) |
| 188 |
layer->setSizeType(Cover); |
| 189 |
else |
| 190 |
layer->setSizeType(SizeLength); |
| 191 |
|
| 192 |
LengthSize b = FillLayer::initialFillSizeLength(layer->type()); |
| 193 |
|
| 194 |
if (value->cssValueType() == CSSValue::CSS_INITIAL || primitiveValue->getIdent() == CSSValueContain |
| 195 |
|| primitiveValue->getIdent() == CSSValueCover) { |
| 196 |
layer->setSizeLength(b); |
| 197 |
return; |
| 198 |
} |
| 199 |
|
| 200 |
Pair* pair = primitiveValue->getPairValue(); |
| 201 |
if (!pair || !pair->first() || !pair->second()) |
| 202 |
return; |
| 203 |
|
| 204 |
CSSPrimitiveValue* first = static_cast<CSSPrimitiveValue*>(pair->first()); |
| 205 |
CSSPrimitiveValue* second = static_cast<CSSPrimitiveValue*>(pair->second()); |
| 206 |
|
| 207 |
Length firstLength, secondLength; |
| 208 |
int firstType = first->primitiveType(); |
| 209 |
int secondType = second->primitiveType(); |
| 210 |
|
| 211 |
float zoomFactor = style->effectiveZoom(); |
| 212 |
|
| 213 |
if (firstType == CSSPrimitiveValue::CSS_UNKNOWN) |
| 214 |
firstLength = Length(Auto); |
| 215 |
else if (CSSPrimitiveValue::isUnitTypeLength(firstType)) |
| 216 |
firstLength = Length(first->computeLengthIntForLength(style, rootElementStyle, zoomFactor), Fixed); |
| 217 |
else if (firstType == CSSPrimitiveValue::CSS_PERCENTAGE) |
| 218 |
firstLength = Length(first->getDoubleValue(), Percent); |
| 219 |
else |
| 220 |
return; |
| 221 |
|
| 222 |
if (secondType == CSSPrimitiveValue::CSS_UNKNOWN) |
| 223 |
secondLength = Length(Auto); |
| 224 |
else if (CSSPrimitiveValue::isUnitTypeLength(secondType)) |
| 225 |
secondLength = Length(second->computeLengthIntForLength(style, rootElementStyle, zoomFactor), Fixed); |
| 226 |
else if (secondType == CSSPrimitiveValue::CSS_PERCENTAGE) |
| 227 |
secondLength = Length(second->getDoubleValue(), Percent); |
| 228 |
else |
| 229 |
return; |
| 230 |
|
| 231 |
b.setWidth(firstLength); |
| 232 |
b.setHeight(secondLength); |
| 233 |
layer->setSizeLength(b); |
| 234 |
} |
| 235 |
|
| 236 |
// CSSPropertyInvalid |
| 237 |
DEFINE_INHERIT(CSSPropertyInvalid)(RenderStyle*, RenderStyle*){} |
| 238 |
DEFINE_INITIAL(CSSPropertyInvalid)(RenderStyle*){} |
| 239 |
DEFINE_VALUE(CSSPropertyInvalid)(RenderStyle*, RenderStyle*, CSSValue*){} |
| 240 |
|
| 241 |
// CSSPropertyColor |
| 242 |
|
| 243 |
|
| 244 |
// CSSPropertyDirection |
| 245 |
// CSSPropertyDisplay |
| 246 |
// CSSPropertyFont |
| 247 |
// CSSPropertyFontFamily |
| 248 |
// CSSPropertyFontSize |
| 249 |
// CSSPropertyFontStyle |
| 250 |
// CSSPropertyFontVariant |
| 251 |
// CSSPropertyFontWeight |
| 252 |
// CSSPropertyTextRendering |
| 253 |
// CSSPropertyWebkitFontSmoothing |
| 254 |
// CSSPropertyWebkitTextSizeAdjust |
| 255 |
// CSSPropertyWebkitWritingMode |
| 256 |
// CSSPropertyZoom |
| 257 |
// CSSPropertyLineHeight |
| 258 |
// CSSPropertyBackground |
| 259 |
// CSSPropertyBackgroundAttachment |
| 260 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyBackgroundAttachment, background, Background, attachment, Attachment) |
| 261 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyBackgroundAttachment, background, Background, attachment, Attachment) |
| 262 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyBackgroundAttachment, background, Background, attachment, Attachment) |
| 263 |
|
| 264 |
// CSSPropertyBackgroundClip |
| 265 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyBackgroundClip, background, Background, clip, Clip) |
| 266 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyBackgroundClip, background, Background, clip, Clip) |
| 267 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyBackgroundClip, background, Background, clip, Clip) |
| 268 |
|
| 269 |
// CSSPropertyBackgroundColor |
| 270 |
// CSSPropertyBackgroundImage |
| 271 |
// CSSPropertyBackgroundOrigin |
| 272 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyBackgroundOrigin, background, Background, origin, Origin) |
| 273 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyBackgroundOrigin, background, Background, origin, Origin) |
| 274 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyBackgroundOrigin, background, Background, origin, Origin) |
| 275 |
|
| 276 |
// CSSPropertyBackgroundPosition |
| 277 |
// CSSPropertyBackgroundPositionX |
| 278 |
// CSSPropertyBackgroundPositionY |
| 279 |
// CSSPropertyBackgroundRepeat |
| 280 |
// CSSPropertyBackgroundRepeatX |
| 281 |
// CSSPropertyBackgroundRepeatY |
| 282 |
// CSSPropertyBackgroundSize |
| 283 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyBackgroundSize, background, Background, size, Size) |
| 284 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyBackgroundSize, background, Background, size, Size) |
| 285 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyBackgroundSize, background, Background, size, Size) |
| 286 |
|
| 287 |
// CSSPropertyBorder |
| 288 |
// CSSPropertyBorderBottom |
| 289 |
// CSSPropertyBorderBottomColor |
| 290 |
// CSSPropertyBorderBottomLeftRadius |
| 291 |
// CSSPropertyBorderBottomRightRadius |
| 292 |
// CSSPropertyBorderBottomStyle |
| 293 |
// CSSPropertyBorderBottomWidth |
| 294 |
// CSSPropertyBorderCollapse |
| 295 |
DEFINE_HANDLE_INHERIT(CSSPropertyBorderCollapse, setBorderCollapse, borderCollapse) |
| 296 |
DEFINE_HANDLE_INITIAL(CSSPropertyBorderCollapse, setBorderCollapse, initialBorderCollapse) |
| 297 |
DEFINE_VALUE(CSSPropertyBorderCollapse)(RenderStyle* style, RenderStyle*, CSSValue* value) { |
| 298 |
if (value->isPrimitiveValue()) { |
| 299 |
CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); |
| 300 |
switch (primitiveValue->getIdent()) { |
| 301 |
case CSSValueCollapse: |
| 302 |
style->setBorderCollapse(true); |
| 303 |
break; |
| 304 |
case CSSValueSeparate: |
| 305 |
style->setBorderCollapse(false); |
| 306 |
break; |
| 307 |
} |
| 308 |
} |
| 309 |
} |
| 310 |
|
| 311 |
// CSSPropertyBorderColor |
| 312 |
// CSSPropertyBorderLeft |
| 313 |
// CSSPropertyBorderLeftColor |
| 314 |
// CSSPropertyBorderLeftStyle |
| 315 |
// CSSPropertyBorderLeftWidth |
| 316 |
// CSSPropertyBorderRadius |
| 317 |
// CSSPropertyBorderRight |
| 318 |
// CSSPropertyBorderRightColor |
| 319 |
// CSSPropertyBorderRightStyle |
| 320 |
// CSSPropertyBorderRightWidth |
| 321 |
// CSSPropertyBorderSpacing |
| 322 |
// CSSPropertyBorderStyle |
| 323 |
// CSSPropertyBorderTop |
| 324 |
// CSSPropertyBorderTopColor |
| 325 |
// CSSPropertyBorderTopLeftRadius |
| 326 |
// CSSPropertyBorderTopRightRadius |
| 327 |
// CSSPropertyBorderTopStyle |
| 328 |
DEFINE_HANDLE_INHERIT(CSSPropertyBorderTopStyle, setBorderTopStyle, borderTopStyle) |
| 329 |
DEFINE_HANDLE_INITIAL(CSSPropertyBorderTopStyle, setBorderTopStyle, initialBorderStyle) |
| 330 |
DEFINE_HANDLE_VALUE(CSSPropertyBorderTopStyle, setBorderTopStyle) |
| 331 |
|
| 332 |
// CSSPropertyBorderTopWidth |
| 333 |
// CSSPropertyBorderWidth |
| 334 |
// CSSPropertyBottom |
| 335 |
// CSSPropertyBoxSizing |
| 336 |
// CSSPropertyCaptionSide |
| 337 |
// CSSPropertyClear |
| 338 |
// CSSPropertyClip |
| 339 |
// CSSPropertyContent |
| 340 |
// CSSPropertyCounterIncrement |
| 341 |
// CSSPropertyCounterReset |
| 342 |
// CSSPropertyCursor |
| 343 |
// CSSPropertyEmptyCells |
| 344 |
// CSSPropertyFloat |
| 345 |
// CSSPropertyFontStretch |
| 346 |
// CSSPropertyHeight |
| 347 |
// CSSPropertyLeft |
| 348 |
// CSSPropertyLetterSpacing |
| 349 |
// CSSPropertyListStyle |
| 350 |
// CSSPropertyListStyleImage |
| 351 |
// CSSPropertyListStylePosition |
| 352 |
// CSSPropertyListStyleType |
| 353 |
// CSSPropertyMargin |
| 354 |
// CSSPropertyMarginBottom |
| 355 |
// CSSPropertyMarginLeft |
| 356 |
// CSSPropertyMarginRight |
| 357 |
// CSSPropertyMarginTop |
| 358 |
// CSSPropertyMaxHeight |
| 359 |
// CSSPropertyMaxWidth |
| 360 |
// CSSPropertyMinHeight |
| 361 |
// CSSPropertyMinWidth |
| 362 |
// CSSPropertyOpacity |
| 363 |
// CSSPropertyOrphans |
| 364 |
// CSSPropertyOutline |
| 365 |
// CSSPropertyOutlineColor |
| 366 |
// CSSPropertyOutlineOffset |
| 367 |
// CSSPropertyOutlineStyle |
| 368 |
// CSSPropertyOutlineWidth |
| 369 |
// CSSPropertyOverflow |
| 370 |
// CSSPropertyOverflowX |
| 371 |
// CSSPropertyOverflowY |
| 372 |
// CSSPropertyPadding |
| 373 |
// CSSPropertyPaddingBottom |
| 374 |
// CSSPropertyPaddingLeft |
| 375 |
// CSSPropertyPaddingRight |
| 376 |
// CSSPropertyPaddingTop |
| 377 |
// CSSPropertyPage |
| 378 |
// CSSPropertyPageBreakAfter |
| 379 |
// CSSPropertyPageBreakBefore |
| 380 |
// CSSPropertyPageBreakInside |
| 381 |
// CSSPropertyPointerEvents |
| 382 |
// CSSPropertyPosition |
| 383 |
// CSSPropertyQuotes |
| 384 |
// CSSPropertyResize |
| 385 |
// CSSPropertyRight |
| 386 |
// CSSPropertySize |
| 387 |
// CSSPropertySrc |
| 388 |
// CSSPropertySpeak |
| 389 |
// CSSPropertyTableLayout |
| 390 |
// CSSPropertyTextAlign |
| 391 |
// CSSPropertyTextDecoration |
| 392 |
// CSSPropertyTextIndent |
| 393 |
// CSSPropertyTextLineThrough |
| 394 |
// CSSPropertyTextLineThroughColor |
| 395 |
// CSSPropertyTextLineThroughMode |
| 396 |
// CSSPropertyTextLineThroughStyle |
| 397 |
// CSSPropertyTextLineThroughWidth |
| 398 |
// CSSPropertyTextOverflow |
| 399 |
// CSSPropertyTextOverline |
| 400 |
// CSSPropertyTextOverlineColor |
| 401 |
// CSSPropertyTextOverlineMode |
| 402 |
// CSSPropertyTextOverlineStyle |
| 403 |
// CSSPropertyTextOverlineWidth |
| 404 |
// CSSPropertyTextShadow |
| 405 |
// CSSPropertyTextTransform |
| 406 |
// CSSPropertyTextUnderline |
| 407 |
// CSSPropertyTextUnderlineColor |
| 408 |
// CSSPropertyTextUnderlineMode |
| 409 |
// CSSPropertyTextUnderlineStyle |
| 410 |
// CSSPropertyTextUnderlineWidth |
| 411 |
// CSSPropertyTop |
| 412 |
// CSSPropertyUnicodeBidi |
| 413 |
// CSSPropertyUnicodeRange |
| 414 |
// CSSPropertyVerticalAlign |
| 415 |
// CSSPropertyVisibility |
| 416 |
// CSSPropertyWhiteSpace |
| 417 |
// CSSPropertyWidows |
| 418 |
// CSSPropertyWidth |
| 419 |
// CSSPropertyWordBreak |
| 420 |
// CSSPropertyWordSpacing |
| 421 |
// CSSPropertyWordWrap |
| 422 |
// CSSPropertyZIndex |
| 423 |
// CSSPropertyWebkitAnimation |
| 424 |
// CSSPropertyWebkitAnimationDelay |
| 425 |
// CSSPropertyWebkitAnimationDirection |
| 426 |
// CSSPropertyWebkitAnimationDuration |
| 427 |
// CSSPropertyWebkitAnimationFillMode |
| 428 |
// CSSPropertyWebkitAnimationIterationCount |
| 429 |
// CSSPropertyWebkitAnimationName |
| 430 |
// CSSPropertyWebkitAnimationPlayState |
| 431 |
// CSSPropertyWebkitAnimationTimingFunction |
| 432 |
// CSSPropertyWebkitAppearance |
| 433 |
// CSSPropertyWebkitBackfaceVisibility |
| 434 |
// CSSPropertyWebkitBackgroundClip |
| 435 |
DEFINE_EQUIVALENT_PROPERTY(CSSPropertyWebkitBackgroundClip, CSSPropertyBackgroundClip) |
| 436 |
|
| 437 |
// CSSPropertyWebkitBackgroundComposite |
| 438 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyWebkitBackgroundComposite, background, Background, composite, Composite) |
| 439 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyWebkitBackgroundComposite, background, Background, composite, Composite) |
| 440 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyWebkitBackgroundComposite, background, Background, composite, Composite) |
| 441 |
|
| 442 |
// CSSPropertyWebkitBackgroundOrigin |
| 443 |
DEFINE_EQUIVALENT_PROPERTY(CSSPropertyWebkitBackgroundOrigin, CSSPropertyBackgroundOrigin) |
| 444 |
|
| 445 |
// CSSPropertyWebkitBackgroundSize |
| 446 |
DEFINE_EQUIVALENT_PROPERTY(CSSPropertyWebkitBackgroundSize, CSSPropertyBackgroundSize) |
| 447 |
|
| 448 |
// CSSPropertyWebkitBorderAfter |
| 449 |
// CSSPropertyWebkitBorderAfterColor |
| 450 |
// CSSPropertyWebkitBorderAfterStyle |
| 451 |
// CSSPropertyWebkitBorderAfterWidth |
| 452 |
// CSSPropertyWebkitBorderBefore |
| 453 |
// CSSPropertyWebkitBorderBeforeColor |
| 454 |
// CSSPropertyWebkitBorderBeforeStyle |
| 455 |
// CSSPropertyWebkitBorderBeforeWidth |
| 456 |
// CSSPropertyWebkitBorderEnd |
| 457 |
// CSSPropertyWebkitBorderEndColor |
| 458 |
// CSSPropertyWebkitBorderEndStyle |
| 459 |
// CSSPropertyWebkitBorderEndWidth |
| 460 |
// CSSPropertyWebkitBorderFit |
| 461 |
// CSSPropertyWebkitBorderHorizontalSpacing |
| 462 |
// CSSPropertyWebkitBorderImage |
| 463 |
// CSSPropertyWebkitBorderRadius |
| 464 |
// CSSPropertyWebkitBorderStart |
| 465 |
// CSSPropertyWebkitBorderStartColor |
| 466 |
// CSSPropertyWebkitBorderStartStyle |
| 467 |
// CSSPropertyWebkitBorderStartWidth |
| 468 |
// CSSPropertyWebkitBorderVerticalSpacing |
| 469 |
// CSSPropertyWebkitBoxAlign |
| 470 |
// CSSPropertyWebkitBoxDirection |
| 471 |
// CSSPropertyWebkitBoxFlex |
| 472 |
// CSSPropertyWebkitBoxFlexGroup |
| 473 |
// CSSPropertyWebkitBoxLines |
| 474 |
// CSSPropertyWebkitBoxOrdinalGroup |
| 475 |
// CSSPropertyWebkitBoxOrient |
| 476 |
// CSSPropertyWebkitBoxPack |
| 477 |
// CSSPropertyWebkitBoxReflect |
| 478 |
// CSSPropertyWebkitBoxShadow |
| 479 |
// CSSPropertyWebkitColorCorrection |
| 480 |
// CSSPropertyWebkitColumnBreakAfter |
| 481 |
// CSSPropertyWebkitColumnBreakBefore |
| 482 |
// CSSPropertyWebkitColumnBreakInside |
| 483 |
// CSSPropertyWebkitColumnCount |
| 484 |
// CSSPropertyWebkitColumnGap |
| 485 |
// CSSPropertyWebkitColumnRule |
| 486 |
// CSSPropertyWebkitColumnRuleColor |
| 487 |
// CSSPropertyWebkitColumnRuleStyle |
| 488 |
// CSSPropertyWebkitColumnRuleWidth |
| 489 |
// CSSPropertyWebkitColumnSpan |
| 490 |
// CSSPropertyWebkitColumnWidth |
| 491 |
// CSSPropertyWebkitColumns |
| 492 |
// CSSPropertyWebkitFontSizeDelta |
| 493 |
// CSSPropertyWebkitHighlight |
| 494 |
// CSSPropertyWebkitHyphenateCharacter |
| 495 |
// CSSPropertyWebkitHyphenateLocale |
| 496 |
// CSSPropertyWebkitHyphens |
| 497 |
// CSSPropertyWebkitLineBreak |
| 498 |
// CSSPropertyWebkitLineClamp |
| 499 |
// CSSPropertyWebkitLogicalWidth |
| 500 |
// CSSPropertyWebkitLogicalHeight |
| 501 |
// CSSPropertyWebkitMarginAfterCollapse |
| 502 |
// CSSPropertyWebkitMarginBeforeCollapse |
| 503 |
// CSSPropertyWebkitMarginBottomCollapse |
| 504 |
// CSSPropertyWebkitMarginTopCollapse |
| 505 |
// CSSPropertyWebkitMarginCollapse |
| 506 |
// CSSPropertyWebkitMarginAfter |
| 507 |
// CSSPropertyWebkitMarginBefore |
| 508 |
// CSSPropertyWebkitMarginEnd |
| 509 |
// CSSPropertyWebkitMarginStart |
| 510 |
// CSSPropertyWebkitMarquee |
| 511 |
// CSSPropertyWebkitMarqueeDirection |
| 512 |
// CSSPropertyWebkitMarqueeIncrement |
| 513 |
// CSSPropertyWebkitMarqueeRepetition |
| 514 |
// CSSPropertyWebkitMarqueeSpeed |
| 515 |
// CSSPropertyWebkitMarqueeStyle |
| 516 |
// CSSPropertyWebkitMask |
| 517 |
|
| 518 |
// CSSPropertyWebkitMaskAttachment |
| 519 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyWebkitMaskAttachment, mask, Mask, attachment, Attachment) |
| 520 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyWebkitMaskAttachment, mask, Mask, attachment, Attachment) |
| 521 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyWebkitMaskAttachment, mask, Mask, attachment, Attachment) |
| 522 |
|
| 523 |
// CSSPropertyWebkitMaskBoxImage |
| 524 |
|
| 525 |
// CSSPropertyWebkitMaskClip |
| 526 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyWebkitMaskClip, mask, Mask, clip, Clip) |
| 527 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyWebkitMaskClip, mask, Mask, clip, Clip) |
| 528 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyWebkitMaskClip, mask, Mask, clip, Clip) |
| 529 |
|
| 530 |
// CSSPropertyWebkitMaskComposite |
| 531 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyWebkitMaskComposite, mask, Mask, composite, Composite) |
| 532 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyWebkitMaskComposite, mask, Mask, composite, Composite) |
| 533 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyWebkitMaskComposite, mask, Mask, composite, Composite) |
| 534 |
|
| 535 |
// CSSPropertyWebkitMaskImage |
| 536 |
|
| 537 |
// CSSPropertyWebkitMaskOrigin |
| 538 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyWebkitMaskOrigin, mask, Mask, origin, Origin) |
| 539 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyWebkitMaskOrigin, mask, Mask, origin, Origin) |
| 540 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyWebkitMaskOrigin, mask, Mask, origin, Origin) |
| 541 |
|
| 542 |
// CSSPropertyWebkitMaskPosition |
| 543 |
// CSSPropertyWebkitMaskPositionX |
| 544 |
// CSSPropertyWebkitMaskPositionY |
| 545 |
// CSSPropertyWebkitMaskRepeat |
| 546 |
// CSSPropertyWebkitMaskRepeatX |
| 547 |
// CSSPropertyWebkitMaskRepeatY |
| 548 |
|
| 549 |
// CSSPropertyWebkitMaskSize |
| 550 |
DEFINE_HANDLE_FILL_LAYER_INHERIT(CSSPropertyWebkitMaskSize, mask, Mask, size, Size) |
| 551 |
DEFINE_HANDLE_FILL_LAYER_INITIAL(CSSPropertyWebkitMaskSize, mask, Mask, size, Size) |
| 552 |
DEFINE_HANDLE_FILL_LAYER_VALUE(CSSPropertyWebkitMaskSize, mask, Mask, size, Size) |
| 553 |
|
| 554 |
// CSSPropertyWebkitMatchNearestMailBlockquoteColor |
| 555 |
// CSSPropertyWebkitMaxLogicalWidth |
| 556 |
// CSSPropertyWebkitMaxLogicalHeight |
| 557 |
// CSSPropertyWebkitMinLogicalWidth |
| 558 |
// CSSPropertyWebkitMinLogicalHeight |
| 559 |
// CSSPropertyWebkitNbspMode |
| 560 |
// CSSPropertyWebkitPaddingAfter |
| 561 |
// CSSPropertyWebkitPaddingBefore |
| 562 |
// CSSPropertyWebkitPaddingEnd |
| 563 |
// CSSPropertyWebkitPaddingStart |
| 564 |
// CSSPropertyWebkitPerspective |
| 565 |
// CSSPropertyWebkitPerspectiveOrigin |
| 566 |
// CSSPropertyWebkitPerspectiveOriginX |
| 567 |
// CSSPropertyWebkitPerspectiveOriginY |
| 568 |
// CSSPropertyWebkitRtlOrdering |
| 569 |
// CSSPropertyWebkitTextCombine |
| 570 |
// CSSPropertyWebkitTextDecorationsInEffect |
| 571 |
// CSSPropertyWebkitTextEmphasis |
| 572 |
// CSSPropertyWebkitTextEmphasisColor |
| 573 |
// CSSPropertyWebkitTextEmphasisPosition |
| 574 |
// CSSPropertyWebkitTextEmphasisStyle |
| 575 |
// CSSPropertyWebkitTextFillColor |
| 576 |
// CSSPropertyWebkitTextSecurity |
| 577 |
// CSSPropertyWebkitTextStroke |
| 578 |
// CSSPropertyWebkitTextStrokeColor |
| 579 |
// CSSPropertyWebkitTextStrokeWidth |
| 580 |
// CSSPropertyWebkitTransform |
| 581 |
// CSSPropertyWebkitTransformOrigin |
| 582 |
// CSSPropertyWebkitTransformOriginX |
| 583 |
// CSSPropertyWebkitTransformOriginY |
| 584 |
// CSSPropertyWebkitTransformOriginZ |
| 585 |
// CSSPropertyWebkitTransformStyle |
| 586 |
// CSSPropertyWebkitTransition |
| 587 |
// CSSPropertyWebkitTransitionDelay |
| 588 |
// CSSPropertyWebkitTransitionDuration |
| 589 |
// CSSPropertyWebkitTransitionProperty |
| 590 |
// CSSPropertyWebkitTransitionTimingFunction |
| 591 |
// CSSPropertyWebkitUserDrag |
| 592 |
// CSSPropertyWebkitUserModify |
| 593 |
// CSSPropertyWebkitUserSelect |
| 594 |
// CSSPropertyClipPath |
| 595 |
// CSSPropertyClipRule |
| 596 |
// CSSPropertyMask |
| 597 |
// CSSPropertyEnableBackground |
| 598 |
// CSSPropertyFilter |
| 599 |
// CSSPropertyFloodColor |
| 600 |
// CSSPropertyFloodOpacity |
| 601 |
// CSSPropertyLightingColor |
| 602 |
// CSSPropertyStopColor |
| 603 |
// CSSPropertyStopOpacity |
| 604 |
// CSSPropertyColorInterpolation |
| 605 |
// CSSPropertyColorInterpolationFilters |
| 606 |
// CSSPropertyColorProfile |
| 607 |
// CSSPropertyColorRendering |
| 608 |
// CSSPropertyFill |
| 609 |
// CSSPropertyFillOpacity |
| 610 |
// CSSPropertyFillRule |
| 611 |
// CSSPropertyImageRendering |
| 612 |
// CSSPropertyMarker |
| 613 |
// CSSPropertyMarkerEnd |
| 614 |
// CSSPropertyMarkerMid |
| 615 |
// CSSPropertyMarkerStart |
| 616 |
// CSSPropertyShapeRendering |
| 617 |
// CSSPropertyStroke |
| 618 |
// CSSPropertyStrokeDasharray |
| 619 |
// CSSPropertyStrokeDashoffset |
| 620 |
// CSSPropertyStrokeLinecap |
| 621 |
// CSSPropertyStrokeLinejoin |
| 622 |
// CSSPropertyStrokeMiterlimit |
| 623 |
// CSSPropertyStrokeOpacity |
| 624 |
// CSSPropertyStrokeWidth |
| 625 |
// CSSPropertyAlignmentBaseline |
| 626 |
// CSSPropertyBaselineShift |
| 627 |
// CSSPropertyDominantBaseline |
| 628 |
// CSSPropertyGlyphOrientationHorizontal |
| 629 |
// CSSPropertyGlyphOrientationVertical |
| 630 |
// CSSPropertyKerning |
| 631 |
// CSSPropertyTextAnchor |
| 632 |
// CSSPropertyVectorEffect |
| 633 |
// CSSPropertyWritingMode |
| 634 |
// CSSPropertyWebkitSvgShadow |
| 635 |
// CSSPropertyWebkitDashboardRegion |
| 636 |
|
| 637 |
CSSStyleApplicator::~CSSStyleApplicator() { |
| 638 |
// TODO Auto-generated destructor stub |
| 639 |
} |
| 640 |
|
| 641 |
CSSStyleApplicator::CSSStyleApplicator() { |
| 642 |
// TODO Auto-generated constructor stub |
| 643 |
} |
| 644 |
|
| 645 |
} |