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 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 if (style->hasPseudoStyle(FIRST_LETTER)) | 1277 if (style->hasPseudoStyle(FIRST_LETTER)) |
1278 style->setUnique(); | 1278 style->setUnique(); |
1279 | 1279 |
1280 // FIXME: when dropping the -webkit prefix on transform-style, we should als
o have opacity < 1 cause flattening. | 1280 // FIXME: when dropping the -webkit prefix on transform-style, we should als
o have opacity < 1 cause flattening. |
1281 if (style->preserves3D() && (style->overflowX() != OVISIBLE | 1281 if (style->preserves3D() && (style->overflowX() != OVISIBLE |
1282 || style->overflowY() != OVISIBLE | 1282 || style->overflowY() != OVISIBLE |
1283 || style->hasFilter())) | 1283 || style->hasFilter())) |
1284 style->setTransformStyle3D(TransformStyle3DFlat); | 1284 style->setTransformStyle3D(TransformStyle3DFlat); |
1285 | 1285 |
1286 // Seamless iframes behave like blocks. Map their display to inline-block wh
en marked inline. | 1286 // Seamless iframes behave like blocks. Map their display to inline-block wh
en marked inline. |
1287 if (e && e->hasTagName(iframeTag) && style->display() == INLINE && static_ca
st<HTMLIFrameElement*>(e)->shouldDisplaySeamlessly()) | 1287 if (e && e->hasTagName(iframeTag) && style->display() == INLINE && toHTMLIFr
ameElement(e)->shouldDisplaySeamlessly()) |
1288 style->setDisplay(INLINE_BLOCK); | 1288 style->setDisplay(INLINE_BLOCK); |
1289 | 1289 |
1290 adjustGridItemPosition(style); | 1290 adjustGridItemPosition(style); |
1291 | 1291 |
1292 if (e && e->isSVGElement()) { | 1292 if (e && e->isSVGElement()) { |
1293 // Spec: http://www.w3.org/TR/SVG/masking.html#OverflowProperty | 1293 // Spec: http://www.w3.org/TR/SVG/masking.html#OverflowProperty |
1294 if (style->overflowY() == OSCROLL) | 1294 if (style->overflowY() == OSCROLL) |
1295 style->setOverflowY(OHIDDEN); | 1295 style->setOverflowY(OHIDDEN); |
1296 else if (style->overflowY() == OAUTO) | 1296 else if (style->overflowY() == OAUTO) |
1297 style->setOverflowY(OVISIBLE); | 1297 style->setOverflowY(OVISIBLE); |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1938 info.addMember(m_state, "state"); | 1938 info.addMember(m_state, "state"); |
1939 | 1939 |
1940 // FIXME: move this to a place where it would be called only once? | 1940 // FIXME: move this to a place where it would be called only once? |
1941 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); | 1941 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); |
1942 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); | 1942 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); |
1943 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle, "defaultPrintStyle"
); | 1943 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle, "defaultPrintStyle"
); |
1944 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); | 1944 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); |
1945 } | 1945 } |
1946 | 1946 |
1947 } // namespace WebCore | 1947 } // namespace WebCore |
OLD | NEW |