Changeset 83698 in webkit
- Timestamp:
- Apr 12, 2011 9:49:52 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83695 r83698 1 2011-04-12 Mike Lawther <mikelawther@chromium.org> 2 3 Reviewed by James Robinson. 4 5 Update boolean operators in RenderStyle to be compatible with check-webkit-style 6 https://bugs.webkit.org/show_bug.cgi?id=58409 7 8 No new functionality, so no new tests. 9 10 * rendering/style/RenderStyle.cpp: 11 (WebCore::RenderStyle::operator==): 12 (WebCore::RenderStyle::inheritedNotEqual): 13 (WebCore::positionedObjectMoved): 14 (WebCore::RenderStyle::diff): 15 (WebCore::RenderStyle::applyTransform): 16 * rendering/style/RenderStyle.h: 17 (WebCore::InheritedFlags::isOriginalDisplayInlineType): 18 1 19 2011-04-12 Luiz Agostini <luiz.agostini@openbossa.org> 2 20 -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r83087 r83698 177 177 { 178 178 // compare everything except the pseudoStyle pointer 179 return inherited_flags == o.inherited_flags &&180 noninherited_flags == o.noninherited_flags &&181 m_box == o.m_box &&182 visual == o.visual &&183 m_background == o.m_background &&184 surround == o.surround &&185 rareNonInheritedData == o.rareNonInheritedData &&186 rareInheritedData == o.rareInheritedData &&187 179 return inherited_flags == o.inherited_flags 180 && noninherited_flags == o.noninherited_flags 181 && m_box == o.m_box 182 && visual == o.visual 183 && m_background == o.m_background 184 && surround == o.surround 185 && rareNonInheritedData == o.rareNonInheritedData 186 && rareInheritedData == o.rareInheritedData 187 && inherited == o.inherited 188 188 #if ENABLE(SVG) 189 189 && m_svgStyle == o.m_svgStyle 190 190 #endif 191 191 ; … … 273 273 bool RenderStyle::inheritedNotEqual(const RenderStyle* other) const 274 274 { 275 return inherited_flags != other->inherited_flags ||276 inherited != other->inherited ||275 return inherited_flags != other->inherited_flags 276 || inherited != other->inherited 277 277 #if ENABLE(SVG) 278 m_svgStyle->inheritedNotEqual(other->m_svgStyle.get()) ||278 || m_svgStyle->inheritedNotEqual(other->m_svgStyle.get()) 279 279 #endif 280 rareInheritedData != other->rareInheritedData;280 || rareInheritedData != other->rareInheritedData; 281 281 } 282 282 … … 285 285 // If any unit types are different, then we can't guarantee 286 286 // that this was just a movement. 287 if (a.left().type() != b.left().type() ||288 a.right().type() != b.right().type() ||289 a.top().type() != b.top().type() ||290 a.bottom().type() != b.bottom().type())287 if (a.left().type() != b.left().type() 288 || a.right().type() != b.right().type() 289 || a.top().type() != b.top().type() 290 || a.bottom().type() != b.bottom().type()) 291 291 return false; 292 292 … … 317 317 #endif 318 318 319 if (m_box->width() != other->m_box->width() ||320 m_box->minWidth() != other->m_box->minWidth() ||321 m_box->maxWidth() != other->m_box->maxWidth() ||322 m_box->height() != other->m_box->height() ||323 m_box->minHeight() != other->m_box->minHeight() ||324 m_box->maxHeight() != other->m_box->maxHeight())319 if (m_box->width() != other->m_box->width() 320 || m_box->minWidth() != other->m_box->minWidth() 321 || m_box->maxWidth() != other->m_box->maxWidth() 322 || m_box->height() != other->m_box->height() 323 || m_box->minHeight() != other->m_box->minHeight() 324 || m_box->maxHeight() != other->m_box->maxHeight()) 325 325 return StyleDifferenceLayout; 326 326 … … 338 338 339 339 if (rareNonInheritedData.get() != other->rareNonInheritedData.get()) { 340 if (rareNonInheritedData->m_appearance != other->rareNonInheritedData->m_appearance ||341 rareNonInheritedData->marginBeforeCollapse != other->rareNonInheritedData->marginBeforeCollapse ||342 rareNonInheritedData->marginAfterCollapse != other->rareNonInheritedData->marginAfterCollapse ||343 rareNonInheritedData->lineClamp != other->rareNonInheritedData->lineClamp ||344 rareNonInheritedData->textOverflow != other->rareNonInheritedData->textOverflow)340 if (rareNonInheritedData->m_appearance != other->rareNonInheritedData->m_appearance 341 || rareNonInheritedData->marginBeforeCollapse != other->rareNonInheritedData->marginBeforeCollapse 342 || rareNonInheritedData->marginAfterCollapse != other->rareNonInheritedData->marginAfterCollapse 343 || rareNonInheritedData->lineClamp != other->rareNonInheritedData->lineClamp 344 || rareNonInheritedData->textOverflow != other->rareNonInheritedData->textOverflow) 345 345 return StyleDifferenceLayout; 346 346 347 if (rareNonInheritedData->flexibleBox.get() != other->rareNonInheritedData->flexibleBox.get() &&348 *rareNonInheritedData->flexibleBox.get() != *other->rareNonInheritedData->flexibleBox.get())347 if (rareNonInheritedData->flexibleBox.get() != other->rareNonInheritedData->flexibleBox.get() 348 && *rareNonInheritedData->flexibleBox.get() != *other->rareNonInheritedData->flexibleBox.get()) 349 349 return StyleDifferenceLayout; 350 350 … … 356 356 return StyleDifferenceLayout; 357 357 358 if (rareNonInheritedData->m_multiCol.get() != other->rareNonInheritedData->m_multiCol.get() &&359 *rareNonInheritedData->m_multiCol.get() != *other->rareNonInheritedData->m_multiCol.get())358 if (rareNonInheritedData->m_multiCol.get() != other->rareNonInheritedData->m_multiCol.get() 359 && *rareNonInheritedData->m_multiCol.get() != *other->rareNonInheritedData->m_multiCol.get()) 360 360 return StyleDifferenceLayout; 361 361 362 if (rareNonInheritedData->m_transform.get() != other->rareNonInheritedData->m_transform.get() &&363 *rareNonInheritedData->m_transform.get() != *other->rareNonInheritedData->m_transform.get()) {362 if (rareNonInheritedData->m_transform.get() != other->rareNonInheritedData->m_transform.get() 363 && *rareNonInheritedData->m_transform.get() != *other->rareNonInheritedData->m_transform.get()) { 364 364 #if USE(ACCELERATED_COMPOSITING) 365 365 changedContextSensitiveProperties |= ContextSensitivePropertyTransform; … … 372 372 #if !USE(ACCELERATED_COMPOSITING) 373 373 if (rareNonInheritedData.get() != other->rareNonInheritedData.get()) { 374 if (rareNonInheritedData->m_transformStyle3D != other->rareNonInheritedData->m_transformStyle3D ||375 rareNonInheritedData->m_backfaceVisibility != other->rareNonInheritedData->m_backfaceVisibility ||376 rareNonInheritedData->m_perspective != other->rareNonInheritedData->m_perspective ||377 rareNonInheritedData->m_perspectiveOriginX != other->rareNonInheritedData->m_perspectiveOriginX ||378 rareNonInheritedData->m_perspectiveOriginY != other->rareNonInheritedData->m_perspectiveOriginY)374 if (rareNonInheritedData->m_transformStyle3D != other->rareNonInheritedData->m_transformStyle3D 375 || rareNonInheritedData->m_backfaceVisibility != other->rareNonInheritedData->m_backfaceVisibility 376 || rareNonInheritedData->m_perspective != other->rareNonInheritedData->m_perspective 377 || rareNonInheritedData->m_perspectiveOriginX != other->rareNonInheritedData->m_perspectiveOriginX 378 || rareNonInheritedData->m_perspectiveOriginY != other->rareNonInheritedData->m_perspectiveOriginY) 379 379 return StyleDifferenceLayout; 380 380 } … … 389 389 390 390 if (rareInheritedData.get() != other->rareInheritedData.get()) { 391 if (rareInheritedData->highlight != other->rareInheritedData->highlight ||392 rareInheritedData->indent != other->rareInheritedData->indent ||393 rareInheritedData->m_effectiveZoom != other->rareInheritedData->m_effectiveZoom ||394 rareInheritedData->textSizeAdjust != other->rareInheritedData->textSizeAdjust ||395 rareInheritedData->wordBreak != other->rareInheritedData->wordBreak ||396 rareInheritedData->wordWrap != other->rareInheritedData->wordWrap ||397 rareInheritedData->nbspMode != other->rareInheritedData->nbspMode ||398 rareInheritedData->khtmlLineBreak != other->rareInheritedData->khtmlLineBreak ||399 rareInheritedData->textSecurity != other->rareInheritedData->textSecurity ||400 rareInheritedData->hyphens != other->rareInheritedData->hyphens ||401 rareInheritedData->hyphenationLimitBefore != other->rareInheritedData->hyphenationLimitBefore ||402 rareInheritedData->hyphenationLimitAfter != other->rareInheritedData->hyphenationLimitAfter ||403 rareInheritedData->hyphenationString != other->rareInheritedData->hyphenationString ||404 rareInheritedData->locale != other->rareInheritedData->locale ||405 rareInheritedData->textEmphasisMark != other->rareInheritedData->textEmphasisMark ||406 rareInheritedData->textEmphasisPosition != other->rareInheritedData->textEmphasisPosition ||407 rareInheritedData->textEmphasisCustomMark != other->rareInheritedData->textEmphasisCustomMark ||408 rareInheritedData->m_lineBoxContain != other->rareInheritedData->m_lineBoxContain)391 if (rareInheritedData->highlight != other->rareInheritedData->highlight 392 || rareInheritedData->indent != other->rareInheritedData->indent 393 || rareInheritedData->m_effectiveZoom != other->rareInheritedData->m_effectiveZoom 394 || rareInheritedData->textSizeAdjust != other->rareInheritedData->textSizeAdjust 395 || rareInheritedData->wordBreak != other->rareInheritedData->wordBreak 396 || rareInheritedData->wordWrap != other->rareInheritedData->wordWrap 397 || rareInheritedData->nbspMode != other->rareInheritedData->nbspMode 398 || rareInheritedData->khtmlLineBreak != other->rareInheritedData->khtmlLineBreak 399 || rareInheritedData->textSecurity != other->rareInheritedData->textSecurity 400 || rareInheritedData->hyphens != other->rareInheritedData->hyphens 401 || rareInheritedData->hyphenationLimitBefore != other->rareInheritedData->hyphenationLimitBefore 402 || rareInheritedData->hyphenationLimitAfter != other->rareInheritedData->hyphenationLimitAfter 403 || rareInheritedData->hyphenationString != other->rareInheritedData->hyphenationString 404 || rareInheritedData->locale != other->rareInheritedData->locale 405 || rareInheritedData->textEmphasisMark != other->rareInheritedData->textEmphasisMark 406 || rareInheritedData->textEmphasisPosition != other->rareInheritedData->textEmphasisPosition 407 || rareInheritedData->textEmphasisCustomMark != other->rareInheritedData->textEmphasisCustomMark 408 || rareInheritedData->m_lineBoxContain != other->rareInheritedData->m_lineBoxContain) 409 409 return StyleDifferenceLayout; 410 410 … … 416 416 } 417 417 418 if (inherited->line_height != other->inherited->line_height ||419 inherited->list_style_image != other->inherited->list_style_image ||420 inherited->font != other->inherited->font ||421 inherited->horizontal_border_spacing != other->inherited->horizontal_border_spacing ||422 inherited->vertical_border_spacing != other->inherited->vertical_border_spacing ||423 inherited_flags._box_direction != other->inherited_flags._box_direction ||424 inherited_flags._visuallyOrdered != other->inherited_flags._visuallyOrdered ||425 noninherited_flags._position != other->noninherited_flags._position ||426 noninherited_flags._floating != other->noninherited_flags._floating ||427 noninherited_flags._originalDisplay != other->noninherited_flags._originalDisplay)418 if (inherited->line_height != other->inherited->line_height 419 || inherited->list_style_image != other->inherited->list_style_image 420 || inherited->font != other->inherited->font 421 || inherited->horizontal_border_spacing != other->inherited->horizontal_border_spacing 422 || inherited->vertical_border_spacing != other->inherited->vertical_border_spacing 423 || inherited_flags._box_direction != other->inherited_flags._box_direction 424 || inherited_flags._visuallyOrdered != other->inherited_flags._visuallyOrdered 425 || noninherited_flags._position != other->noninherited_flags._position 426 || noninherited_flags._floating != other->noninherited_flags._floating 427 || noninherited_flags._originalDisplay != other->noninherited_flags._originalDisplay) 428 428 return StyleDifferenceLayout; 429 429 430 430 431 431 if (((int)noninherited_flags._effectiveDisplay) >= TABLE) { 432 if (inherited_flags._border_collapse != other->inherited_flags._border_collapse ||433 inherited_flags._empty_cells != other->inherited_flags._empty_cells ||434 inherited_flags._caption_side != other->inherited_flags._caption_side ||435 noninherited_flags._table_layout != other->noninherited_flags._table_layout)432 if (inherited_flags._border_collapse != other->inherited_flags._border_collapse 433 || inherited_flags._empty_cells != other->inherited_flags._empty_cells 434 || inherited_flags._caption_side != other->inherited_flags._caption_side 435 || noninherited_flags._table_layout != other->noninherited_flags._table_layout) 436 436 return StyleDifferenceLayout; 437 437 438 438 // In the collapsing border model, 'hidden' suppresses other borders, while 'none' 439 439 // does not, so these style differences can be width differences. 440 if (inherited_flags._border_collapse &&441 ((borderTopStyle() == BHIDDEN && other->borderTopStyle() == BNONE) ||442 (borderTopStyle() == BNONE && other->borderTopStyle() == BHIDDEN) ||443 (borderBottomStyle() == BHIDDEN && other->borderBottomStyle() == BNONE) ||444 (borderBottomStyle() == BNONE && other->borderBottomStyle() == BHIDDEN) ||445 (borderLeftStyle() == BHIDDEN && other->borderLeftStyle() == BNONE) ||446 (borderLeftStyle() == BNONE && other->borderLeftStyle() == BHIDDEN) ||447 (borderRightStyle() == BHIDDEN && other->borderRightStyle() == BNONE) ||448 (borderRightStyle() == BNONE && other->borderRightStyle() == BHIDDEN)))440 if (inherited_flags._border_collapse 441 && ((borderTopStyle() == BHIDDEN && other->borderTopStyle() == BNONE) 442 || (borderTopStyle() == BNONE && other->borderTopStyle() == BHIDDEN) 443 || (borderBottomStyle() == BHIDDEN && other->borderBottomStyle() == BNONE) 444 || (borderBottomStyle() == BNONE && other->borderBottomStyle() == BHIDDEN) 445 || (borderLeftStyle() == BHIDDEN && other->borderLeftStyle() == BNONE) 446 || (borderLeftStyle() == BNONE && other->borderLeftStyle() == BHIDDEN) 447 || (borderRightStyle() == BHIDDEN && other->borderRightStyle() == BNONE) 448 || (borderRightStyle() == BNONE && other->borderRightStyle() == BHIDDEN))) 449 449 return StyleDifferenceLayout; 450 450 } 451 451 452 452 if (noninherited_flags._effectiveDisplay == LIST_ITEM) { 453 if (inherited_flags._list_style_type != other->inherited_flags._list_style_type ||454 inherited_flags._list_style_position != other->inherited_flags._list_style_position)453 if (inherited_flags._list_style_type != other->inherited_flags._list_style_type 454 || inherited_flags._list_style_position != other->inherited_flags._list_style_position) 455 455 return StyleDifferenceLayout; 456 456 } 457 457 458 if (inherited_flags._text_align != other->inherited_flags._text_align ||459 inherited_flags._text_transform != other->inherited_flags._text_transform ||460 inherited_flags._direction != other->inherited_flags._direction ||461 inherited_flags._white_space != other->inherited_flags._white_space ||462 noninherited_flags._clear != other->noninherited_flags._clear ||463 noninherited_flags._unicodeBidi != other->noninherited_flags._unicodeBidi)458 if (inherited_flags._text_align != other->inherited_flags._text_align 459 || inherited_flags._text_transform != other->inherited_flags._text_transform 460 || inherited_flags._direction != other->inherited_flags._direction 461 || inherited_flags._white_space != other->inherited_flags._white_space 462 || noninherited_flags._clear != other->noninherited_flags._clear 463 || noninherited_flags._unicodeBidi != other->noninherited_flags._unicodeBidi) 464 464 return StyleDifferenceLayout; 465 465 … … 473 473 474 474 // Overflow returns a layout hint. 475 if (noninherited_flags._overflowX != other->noninherited_flags._overflowX ||476 noninherited_flags._overflowY != other->noninherited_flags._overflowY)475 if (noninherited_flags._overflowX != other->noninherited_flags._overflowX 476 || noninherited_flags._overflowY != other->noninherited_flags._overflowY) 477 477 return StyleDifferenceLayout; 478 478 479 479 // If our border widths change, then we need to layout. Other changes to borders 480 480 // only necessitate a repaint. 481 if (borderLeftWidth() != other->borderLeftWidth() ||482 borderTopWidth() != other->borderTopWidth() ||483 borderBottomWidth() != other->borderBottomWidth() ||484 borderRightWidth() != other->borderRightWidth())481 if (borderLeftWidth() != other->borderLeftWidth() 482 || borderTopWidth() != other->borderTopWidth() 483 || borderBottomWidth() != other->borderBottomWidth() 484 || borderRightWidth() != other->borderRightWidth()) 485 485 return StyleDifferenceLayout; 486 486 … … 490 490 if (!(mapA == mapB || (mapA && mapB && *mapA == *mapB))) 491 491 return StyleDifferenceLayout; 492 if (rareNonInheritedData->m_counterIncrement != other->rareNonInheritedData->m_counterIncrement ||493 rareNonInheritedData->m_counterReset != other->rareNonInheritedData->m_counterReset)492 if (rareNonInheritedData->m_counterIncrement != other->rareNonInheritedData->m_counterIncrement 493 || rareNonInheritedData->m_counterReset != other->rareNonInheritedData->m_counterReset) 494 494 return StyleDifferenceLayout; 495 495 … … 497 497 return StyleDifferenceLayout; 498 498 499 if ((rareNonInheritedData->opacity == 1 && other->rareNonInheritedData->opacity < 1) ||500 (rareNonInheritedData->opacity < 1 && other->rareNonInheritedData->opacity == 1)) {499 if ((rareNonInheritedData->opacity == 1 && other->rareNonInheritedData->opacity < 1) 500 || (rareNonInheritedData->opacity < 1 && other->rareNonInheritedData->opacity == 1)) { 501 501 // FIXME: We would like to use SimplifiedLayout here, but we can't quite do that yet. 502 502 // We need to make sure SimplifiedLayout can operate correctly on RenderInlines (we will need … … 528 528 // to add a selfNeedsSimplifiedLayout bit in order to not get confused and taint every line). 529 529 return StyleDifferenceLayout; 530 } else if (m_box->zIndex() != other->m_box->zIndex() || m_box->hasAutoZIndex() != other->m_box->hasAutoZIndex() ||531 visual->clip != other->visual->clip || visual->hasClip != other->visual->hasClip)530 } else if (m_box->zIndex() != other->m_box->zIndex() || m_box->hasAutoZIndex() != other->m_box->hasAutoZIndex() 531 || visual->clip != other->visual->clip || visual->hasClip != other->visual->hasClip) 532 532 return StyleDifferenceRepaintLayer; 533 533 } … … 542 542 } 543 543 544 if (rareNonInheritedData->m_mask != other->rareNonInheritedData->m_mask ||545 rareNonInheritedData->m_maskBoxImage != other->rareNonInheritedData->m_maskBoxImage)544 if (rareNonInheritedData->m_mask != other->rareNonInheritedData->m_mask 545 || rareNonInheritedData->m_maskBoxImage != other->rareNonInheritedData->m_maskBoxImage) 546 546 return StyleDifferenceRepaintLayer; 547 547 548 if (inherited->color != other->inherited->color ||549 inherited_flags._visibility != other->inherited_flags._visibility ||550 inherited_flags._text_decorations != other->inherited_flags._text_decorations ||551 inherited_flags._force_backgrounds_to_white != other->inherited_flags._force_backgrounds_to_white ||552 inherited_flags._insideLink != other->inherited_flags._insideLink ||553 surround->border != other->surround->border ||554 *m_background.get() != *other->m_background.get() ||555 visual->textDecoration != other->visual->textDecoration ||556 rareInheritedData->userModify != other->rareInheritedData->userModify ||557 rareInheritedData->userSelect != other->rareInheritedData->userSelect ||558 rareNonInheritedData->userDrag != other->rareNonInheritedData->userDrag ||559 rareNonInheritedData->m_borderFit != other->rareNonInheritedData->m_borderFit ||560 rareInheritedData->textFillColor != other->rareInheritedData->textFillColor ||561 rareInheritedData->textStrokeColor != other->rareInheritedData->textStrokeColor ||562 rareInheritedData->textEmphasisColor != other->rareInheritedData->textEmphasisColor ||563 rareInheritedData->textEmphasisFill != other->rareInheritedData->textEmphasisFill)548 if (inherited->color != other->inherited->color 549 || inherited_flags._visibility != other->inherited_flags._visibility 550 || inherited_flags._text_decorations != other->inherited_flags._text_decorations 551 || inherited_flags._force_backgrounds_to_white != other->inherited_flags._force_backgrounds_to_white 552 || inherited_flags._insideLink != other->inherited_flags._insideLink 553 || surround->border != other->surround->border 554 || *m_background.get() != *other->m_background.get() 555 || visual->textDecoration != other->visual->textDecoration 556 || rareInheritedData->userModify != other->rareInheritedData->userModify 557 || rareInheritedData->userSelect != other->rareInheritedData->userSelect 558 || rareNonInheritedData->userDrag != other->rareNonInheritedData->userDrag 559 || rareNonInheritedData->m_borderFit != other->rareNonInheritedData->m_borderFit 560 || rareInheritedData->textFillColor != other->rareInheritedData->textFillColor 561 || rareInheritedData->textStrokeColor != other->rareInheritedData->textStrokeColor 562 || rareInheritedData->textEmphasisColor != other->rareInheritedData->textEmphasisColor 563 || rareInheritedData->textEmphasisFill != other->rareInheritedData->textEmphasisFill) 564 564 return StyleDifferenceRepaint; 565 565 566 566 #if USE(ACCELERATED_COMPOSITING) 567 567 if (rareNonInheritedData.get() != other->rareNonInheritedData.get()) { 568 if (rareNonInheritedData->m_transformStyle3D != other->rareNonInheritedData->m_transformStyle3D ||569 rareNonInheritedData->m_backfaceVisibility != other->rareNonInheritedData->m_backfaceVisibility ||570 rareNonInheritedData->m_perspective != other->rareNonInheritedData->m_perspective ||571 rareNonInheritedData->m_perspectiveOriginX != other->rareNonInheritedData->m_perspectiveOriginX ||572 rareNonInheritedData->m_perspectiveOriginY != other->rareNonInheritedData->m_perspectiveOriginY)568 if (rareNonInheritedData->m_transformStyle3D != other->rareNonInheritedData->m_transformStyle3D 569 || rareNonInheritedData->m_backfaceVisibility != other->rareNonInheritedData->m_backfaceVisibility 570 || rareNonInheritedData->m_perspective != other->rareNonInheritedData->m_perspective 571 || rareNonInheritedData->m_perspectiveOriginX != other->rareNonInheritedData->m_perspectiveOriginX 572 || rareNonInheritedData->m_perspectiveOriginY != other->rareNonInheritedData->m_perspectiveOriginY) 573 573 return StyleDifferenceRecompositeLayer; 574 574 } … … 694 694 for (i = 0; i < s; i++) { 695 695 TransformOperation::OperationType type = rareNonInheritedData->m_transform->m_operations.operations()[i]->getOperationType(); 696 if (type != TransformOperation::TRANSLATE_X &&697 type != TransformOperation::TRANSLATE_Y &&698 type != TransformOperation::TRANSLATE &&699 type != TransformOperation::TRANSLATE_Z &&700 type != TransformOperation::TRANSLATE_3D696 if (type != TransformOperation::TRANSLATE_X 697 && type != TransformOperation::TRANSLATE_Y 698 && type != TransformOperation::TRANSLATE 699 && type != TransformOperation::TRANSLATE_Z 700 && type != TransformOperation::TRANSLATE_3D 701 701 ) { 702 702 applyTransformOrigin = true; -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r82828 r83698 162 162 bool operator==(const InheritedFlags& other) const 163 163 { 164 return (_empty_cells == other._empty_cells) &&165 (_caption_side == other._caption_side) &&166 (_list_style_type == other._list_style_type) &&167 (_list_style_position == other._list_style_position) &&168 (_visibility == other._visibility) &&169 (_text_align == other._text_align) &&170 (_text_transform == other._text_transform) &&171 (_text_decorations == other._text_decorations) &&172 (_cursor_style == other._cursor_style) &&173 (_direction == other._direction) &&174 (_border_collapse == other._border_collapse) &&175 (_white_space == other._white_space) &&176 (_box_direction == other._box_direction) &&177 (_visuallyOrdered == other._visuallyOrdered) &&178 (_force_backgrounds_to_white == other._force_backgrounds_to_white) &&179 (_pointerEvents == other._pointerEvents) &&180 (_insideLink == other._insideLink) &&181 164 return (_empty_cells == other._empty_cells) 165 && (_caption_side == other._caption_side) 166 && (_list_style_type == other._list_style_type) 167 && (_list_style_position == other._list_style_position) 168 && (_visibility == other._visibility) 169 && (_text_align == other._text_align) 170 && (_text_transform == other._text_transform) 171 && (_text_decorations == other._text_decorations) 172 && (_cursor_style == other._cursor_style) 173 && (_direction == other._direction) 174 && (_border_collapse == other._border_collapse) 175 && (_white_space == other._white_space) 176 && (_box_direction == other._box_direction) 177 && (_visuallyOrdered == other._visuallyOrdered) 178 && (_force_backgrounds_to_white == other._force_backgrounds_to_white) 179 && (_pointerEvents == other._pointerEvents) 180 && (_insideLink == other._insideLink) 181 && (m_writingMode == other.m_writingMode); 182 182 } 183 183 … … 1171 1171 bool isOriginalDisplayInlineType() const 1172 1172 { 1173 return originalDisplay() == INLINE || originalDisplay() == INLINE_BLOCK ||1174 1173 return originalDisplay() == INLINE || originalDisplay() == INLINE_BLOCK 1174 || originalDisplay() == INLINE_BOX || originalDisplay() == INLINE_TABLE; 1175 1175 } 1176 1176
Note: See TracChangeset
for help on using the changeset viewer.