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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
190 || style.hasFilter() | 190 || style.hasFilter() |
191 || style.hasBlendMode() | 191 || style.hasBlendMode() |
192 || style.hasIsolation() | 192 || style.hasIsolation() |
193 || style.position() == FixedPosition | 193 || style.position() == FixedPosition |
194 || isInTopLayer(e, style) | 194 || isInTopLayer(e, style) |
195 || hasWillChangeThatCreatesStackingContext(style))) | 195 || hasWillChangeThatCreatesStackingContext(style))) |
196 style.setZIndex(0); | 196 style.setZIndex(0); |
197 | 197 |
198 // will-change:transform should result in the same rendering behavior as hav ing a transform, | 198 // will-change:transform should result in the same rendering behavior as hav ing a transform, |
199 // including the creation of a containing block for fixed position descendan ts. | 199 // including the creation of a containing block for fixed position descendan ts. |
200 if (!style.hasTransform() && (style.willChangeProperties().contains(CSSPrope rtyWebkitTransform) || style.willChangeProperties().contains(CSSPropertyTransfor m))) { | 200 if (!e->isSVGElement() && !style.hasTransform() && (style.willChangeProperti es().contains(CSSPropertyWebkitTransform) || style.willChangeProperties().contai ns(CSSPropertyTransform))) { |
pdr.
2015/04/10 04:55:11
This will crash when e is null so you'll need an e
| |
201 bool makeIdentity = true; | 201 bool makeIdentity = true; |
202 style.setTransform(TransformOperations(makeIdentity)); | 202 style.setTransform(TransformOperations(makeIdentity)); |
203 } | 203 } |
204 | 204 |
205 if (doesNotInheritTextDecoration(style, e)) | 205 if (doesNotInheritTextDecoration(style, e)) |
206 style.clearAppliedTextDecorations(); | 206 style.clearAppliedTextDecorations(); |
207 | 207 |
208 style.applyTextDecorations(); | 208 style.applyTextDecorations(); |
209 | 209 |
210 if (style.overflowX() != OVISIBLE || style.overflowY() != OVISIBLE) | 210 if (style.overflowX() != OVISIBLE || style.overflowY() != OVISIBLE) |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
486 if (style.writingMode() != TopToBottomWritingMode && (style.display() == BOX || style.display() == INLINE_BOX)) | 486 if (style.writingMode() != TopToBottomWritingMode && (style.display() == BOX || style.display() == INLINE_BOX)) |
487 style.setWritingMode(TopToBottomWritingMode); | 487 style.setWritingMode(TopToBottomWritingMode); |
488 | 488 |
489 if (parentStyle.isDisplayFlexibleOrGridBox()) { | 489 if (parentStyle.isDisplayFlexibleOrGridBox()) { |
490 style.setFloating(NoFloat); | 490 style.setFloating(NoFloat); |
491 style.setDisplay(equivalentBlockDisplay(style.display(), style.isFloatin g(), !m_useQuirksModeStyles)); | 491 style.setDisplay(equivalentBlockDisplay(style.display(), style.isFloatin g(), !m_useQuirksModeStyles)); |
492 } | 492 } |
493 } | 493 } |
494 | 494 |
495 } | 495 } |
OLD | NEW |