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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 121 } |
122 | 122 |
123 static bool hasWillChangeThatCreatesStackingContext(const ComputedStyle& style) | 123 static bool hasWillChangeThatCreatesStackingContext(const ComputedStyle& style) |
124 { | 124 { |
125 for (size_t i = 0; i < style.willChangeProperties().size(); ++i) { | 125 for (size_t i = 0; i < style.willChangeProperties().size(); ++i) { |
126 switch (style.willChangeProperties()[i]) { | 126 switch (style.willChangeProperties()[i]) { |
127 case CSSPropertyOpacity: | 127 case CSSPropertyOpacity: |
128 case CSSPropertyTransform: | 128 case CSSPropertyTransform: |
129 case CSSPropertyWebkitTransform: | 129 case CSSPropertyWebkitTransform: |
130 case CSSPropertyTransformStyle: | 130 case CSSPropertyTransformStyle: |
131 case CSSPropertyWebkitTransformStyle: | 131 case CSSPropertyAliasWebkitTransformStyle: |
132 case CSSPropertyPerspective: | 132 case CSSPropertyPerspective: |
133 case CSSPropertyWebkitPerspective: | 133 case CSSPropertyWebkitPerspective: |
134 case CSSPropertyWebkitMask: | 134 case CSSPropertyWebkitMask: |
135 case CSSPropertyWebkitMaskBoxImage: | 135 case CSSPropertyWebkitMaskBoxImage: |
136 case CSSPropertyWebkitClipPath: | 136 case CSSPropertyWebkitClipPath: |
137 case CSSPropertyWebkitBoxReflect: | 137 case CSSPropertyWebkitBoxReflect: |
138 case CSSPropertyWebkitFilter: | 138 case CSSPropertyWebkitFilter: |
139 case CSSPropertyZIndex: | 139 case CSSPropertyZIndex: |
140 case CSSPropertyPosition: | 140 case CSSPropertyPosition: |
141 return true; | 141 return true; |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 if (style.writingMode() != TopToBottomWritingMode && (style.display() == BOX
|| style.display() == INLINE_BOX)) | 488 if (style.writingMode() != TopToBottomWritingMode && (style.display() == BOX
|| 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.isFloatin
g(), !m_useQuirksModeStyles)); | 493 style.setDisplay(equivalentBlockDisplay(style.display(), style.isFloatin
g(), !m_useQuirksModeStyles)); |
494 } | 494 } |
495 } | 495 } |
496 | 496 |
497 } | 497 } |
OLD | NEW |