Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
| 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 778 } | 778 } |
| 779 case CSSPropertyWebkitTapHighlightColor: { | 779 case CSSPropertyWebkitTapHighlightColor: { |
| 780 HANDLE_INHERIT_AND_INITIAL(tapHighlightColor, TapHighlightColor); | 780 HANDLE_INHERIT_AND_INITIAL(tapHighlightColor, TapHighlightColor); |
| 781 if (!primitiveValue) | 781 if (!primitiveValue) |
| 782 break; | 782 break; |
| 783 | 783 |
| 784 Color col = state.document()->textLinkColors().colorFromPrimitiveValue(p rimitiveValue, state.style()->visitedDependentColor(CSSPropertyColor)); | 784 Color col = state.document()->textLinkColors().colorFromPrimitiveValue(p rimitiveValue, state.style()->visitedDependentColor(CSSPropertyColor)); |
| 785 state.style()->setTapHighlightColor(col); | 785 state.style()->setTapHighlightColor(col); |
| 786 return; | 786 return; |
| 787 } | 787 } |
| 788 #if ENABLE(CSS_CALLBACKS) | |
| 789 case CSSPropertyInternalCallback: { | |
| 790 if (isInherit || isInitial) | |
| 791 return; | |
| 792 if (primitiveValue) { | |
|
esprehn
2013/07/13 01:43:01
if (primitiveValue && primitiveValue->getValueID()
Jeffrey Yasskin
2013/08/13 00:29:29
Done.
| |
| 793 switch (primitiveValue->getValueID()) { | |
| 794 case CSSValueInternalPresence: | |
| 795 state.style()->addCallbackSelector( | |
| 796 state.rule()->selectorList().selectorsText(), | |
| 797 state.element()->document()); | |
| 798 return; | |
| 799 default: | |
| 800 break; | |
| 801 } | |
| 802 } | |
| 803 break; | |
| 804 } | |
| 805 #endif | |
| 788 case CSSPropertyInvalid: | 806 case CSSPropertyInvalid: |
| 789 return; | 807 return; |
| 790 // Directional properties are resolved by resolveDirectionAwareProperty() be fore the switch. | 808 // Directional properties are resolved by resolveDirectionAwareProperty() be fore the switch. |
| 791 case CSSPropertyWebkitBorderEndColor: | 809 case CSSPropertyWebkitBorderEndColor: |
| 792 case CSSPropertyWebkitBorderEndStyle: | 810 case CSSPropertyWebkitBorderEndStyle: |
| 793 case CSSPropertyWebkitBorderEndWidth: | 811 case CSSPropertyWebkitBorderEndWidth: |
| 794 case CSSPropertyWebkitBorderStartColor: | 812 case CSSPropertyWebkitBorderStartColor: |
| 795 case CSSPropertyWebkitBorderStartStyle: | 813 case CSSPropertyWebkitBorderStartStyle: |
| 796 case CSSPropertyWebkitBorderStartWidth: | 814 case CSSPropertyWebkitBorderStartWidth: |
| 797 case CSSPropertyWebkitBorderBeforeColor: | 815 case CSSPropertyWebkitBorderBeforeColor: |
| (...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1632 case CSSPropertyMaskType: { | 1650 case CSSPropertyMaskType: { |
| 1633 HANDLE_SVG_INHERIT_AND_INITIAL(maskType, MaskType) | 1651 HANDLE_SVG_INHERIT_AND_INITIAL(maskType, MaskType) |
| 1634 if (primitiveValue) | 1652 if (primitiveValue) |
| 1635 state.style()->accessSVGStyle()->setMaskType(*primitiveValue); | 1653 state.style()->accessSVGStyle()->setMaskType(*primitiveValue); |
| 1636 break; | 1654 break; |
| 1637 } | 1655 } |
| 1638 } | 1656 } |
| 1639 } | 1657 } |
| 1640 | 1658 |
| 1641 } // namespace WebCore | 1659 } // namespace WebCore |
| OLD | NEW |