OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 if (style->overflowX() != OVISIBLE || style->overflowY() != OVISIBLE) | 212 if (style->overflowX() != OVISIBLE || style->overflowY() != OVISIBLE) |
213 adjustOverflow(style); | 213 adjustOverflow(style); |
214 | 214 |
215 // Cull out any useless layers and also repeat patterns into additional laye
rs. | 215 // Cull out any useless layers and also repeat patterns into additional laye
rs. |
216 style->adjustBackgroundLayers(); | 216 style->adjustBackgroundLayers(); |
217 style->adjustMaskLayers(); | 217 style->adjustMaskLayers(); |
218 | 218 |
219 // Let the theme also have a crack at adjusting the style. | 219 // Let the theme also have a crack at adjusting the style. |
220 if (style->hasAppearance()) | 220 if (style->hasAppearance()) |
221 LayoutTheme::theme().adjustStyle(style, e, cachedUAStyle); | 221 LayoutTheme::theme().adjustStyle(*style, e, cachedUAStyle); |
222 | 222 |
223 // If we have first-letter pseudo style, transitions, or animations, do not
share this style. | 223 // If we have first-letter pseudo style, transitions, or animations, do not
share this style. |
224 if (style->hasPseudoStyle(FIRST_LETTER) || style->transitions() || style->an
imations()) | 224 if (style->hasPseudoStyle(FIRST_LETTER) || style->transitions() || style->an
imations()) |
225 style->setUnique(); | 225 style->setUnique(); |
226 | 226 |
227 // FIXME: when dropping the -webkit prefix on transform-style, we should als
o have opacity < 1 cause flattening. | 227 // FIXME: when dropping the -webkit prefix on transform-style, we should als
o have opacity < 1 cause flattening. |
228 if (style->preserves3D() && (style->overflowX() != OVISIBLE | 228 if (style->preserves3D() && (style->overflowX() != OVISIBLE |
229 || style->overflowY() != OVISIBLE | 229 || style->overflowY() != OVISIBLE |
230 || style->hasFilter())) | 230 || style->hasFilter())) |
231 style->setTransformStyle3D(TransformStyle3DFlat); | 231 style->setTransformStyle3D(TransformStyle3DFlat); |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 if (style->writingMode() != TopToBottomWritingMode && (style->display() == B
OX || style->display() == INLINE_BOX)) | 488 if (style->writingMode() != TopToBottomWritingMode && (style->display() == B
OX || style->display() == INLINE_BOX)) |
489 style->setWritingMode(TopToBottomWritingMode); | 489 style->setWritingMode(TopToBottomWritingMode); |
490 | 490 |
491 if (parentStyle->isDisplayFlexibleOrGridBox()) { | 491 if (parentStyle->isDisplayFlexibleOrGridBox()) { |
492 style->setFloating(NoFloat); | 492 style->setFloating(NoFloat); |
493 style->setDisplay(equivalentBlockDisplay(style->display(), style->isFloa
ting(), !m_useQuirksModeStyles)); | 493 style->setDisplay(equivalentBlockDisplay(style->display(), style->isFloa
ting(), !m_useQuirksModeStyles)); |
494 } | 494 } |
495 } | 495 } |
496 | 496 |
497 } | 497 } |
OLD | NEW |