| 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 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1587 if (style->hasAutoZIndex() && ((e && e->document()->documentElement() == e) | 1587 if (style->hasAutoZIndex() && ((e && e->document()->documentElement() == e) |
| 1588 || style->opacity() < 1.0f | 1588 || style->opacity() < 1.0f |
| 1589 || style->hasTransformRelatedProperty() | 1589 || style->hasTransformRelatedProperty() |
| 1590 || style->hasMask() | 1590 || style->hasMask() |
| 1591 || style->clipPath() | 1591 || style->clipPath() |
| 1592 || style->boxReflect() | 1592 || style->boxReflect() |
| 1593 || style->hasFilter() | 1593 || style->hasFilter() |
| 1594 || style->hasBlendMode() | 1594 || style->hasBlendMode() |
| 1595 || style->position() == StickyPosition | 1595 || style->position() == StickyPosition |
| 1596 || (style->position() == FixedPosition && e && e->document()->page() &&
e->document()->page()->settings()->fixedPositionCreatesStackingContext()) | 1596 || (style->position() == FixedPosition && e && e->document()->page() &&
e->document()->page()->settings()->fixedPositionCreatesStackingContext()) |
| 1597 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | |
| 1598 // Touch overflow scrolling creates a stacking context. | |
| 1599 || ((style->overflowX() != OHIDDEN || style->overflowY() != OHIDDEN) &&
style->useTouchOverflowScrolling()) | |
| 1600 #endif | |
| 1601 || (e && e->isInTopLayer()) | 1597 || (e && e->isInTopLayer()) |
| 1602 )) | 1598 )) |
| 1603 style->setZIndex(0); | 1599 style->setZIndex(0); |
| 1604 | 1600 |
| 1605 // Textarea considers overflow visible as auto. | 1601 // Textarea considers overflow visible as auto. |
| 1606 if (e && e->hasTagName(textareaTag)) { | 1602 if (e && e->hasTagName(textareaTag)) { |
| 1607 style->setOverflowX(style->overflowX() == OVISIBLE ? OAUTO : style->over
flowX()); | 1603 style->setOverflowX(style->overflowX() == OVISIBLE ? OAUTO : style->over
flowX()); |
| 1608 style->setOverflowY(style->overflowY() == OVISIBLE ? OAUTO : style->over
flowY()); | 1604 style->setOverflowY(style->overflowY() == OVISIBLE ? OAUTO : style->over
flowY()); |
| 1609 } | 1605 } |
| 1610 | 1606 |
| (...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2837 } | 2833 } |
| 2838 case CSSPropertyWebkitTapHighlightColor: { | 2834 case CSSPropertyWebkitTapHighlightColor: { |
| 2839 HANDLE_INHERIT_AND_INITIAL(tapHighlightColor, TapHighlightColor); | 2835 HANDLE_INHERIT_AND_INITIAL(tapHighlightColor, TapHighlightColor); |
| 2840 if (!primitiveValue) | 2836 if (!primitiveValue) |
| 2841 break; | 2837 break; |
| 2842 | 2838 |
| 2843 Color col = m_state.colorFromPrimitiveValue(primitiveValue); | 2839 Color col = m_state.colorFromPrimitiveValue(primitiveValue); |
| 2844 state.style()->setTapHighlightColor(col); | 2840 state.style()->setTapHighlightColor(col); |
| 2845 return; | 2841 return; |
| 2846 } | 2842 } |
| 2847 #if ENABLE(ACCELERATED_OVERFLOW_SCROLLING) | |
| 2848 case CSSPropertyWebkitOverflowScrolling: { | |
| 2849 HANDLE_INHERIT_AND_INITIAL(useTouchOverflowScrolling, UseTouchOverflowSc
rolling); | |
| 2850 if (!primitiveValue) | |
| 2851 break; | |
| 2852 state.style()->setUseTouchOverflowScrolling(primitiveValue->getValueID()
== CSSValueTouch); | |
| 2853 return; | |
| 2854 } | |
| 2855 #endif | |
| 2856 case CSSPropertyInvalid: | 2843 case CSSPropertyInvalid: |
| 2857 return; | 2844 return; |
| 2858 // Directional properties are resolved by resolveDirectionAwareProperty() be
fore the switch. | 2845 // Directional properties are resolved by resolveDirectionAwareProperty() be
fore the switch. |
| 2859 case CSSPropertyWebkitBorderEndColor: | 2846 case CSSPropertyWebkitBorderEndColor: |
| 2860 case CSSPropertyWebkitBorderEndStyle: | 2847 case CSSPropertyWebkitBorderEndStyle: |
| 2861 case CSSPropertyWebkitBorderEndWidth: | 2848 case CSSPropertyWebkitBorderEndWidth: |
| 2862 case CSSPropertyWebkitBorderStartColor: | 2849 case CSSPropertyWebkitBorderStartColor: |
| 2863 case CSSPropertyWebkitBorderStartStyle: | 2850 case CSSPropertyWebkitBorderStartStyle: |
| 2864 case CSSPropertyWebkitBorderStartWidth: | 2851 case CSSPropertyWebkitBorderStartWidth: |
| 2865 case CSSPropertyWebkitBorderBeforeColor: | 2852 case CSSPropertyWebkitBorderBeforeColor: |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3731 info.addMember(m_state, "state"); | 3718 info.addMember(m_state, "state"); |
| 3732 | 3719 |
| 3733 // FIXME: move this to a place where it would be called only once? | 3720 // FIXME: move this to a place where it would be called only once? |
| 3734 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); | 3721 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); |
| 3735 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); | 3722 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); |
| 3736 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle, "defaultPrintStyle"
); | 3723 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle, "defaultPrintStyle"
); |
| 3737 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); | 3724 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); |
| 3738 } | 3725 } |
| 3739 | 3726 |
| 3740 } // namespace WebCore | 3727 } // namespace WebCore |
| OLD | NEW |