| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 Google, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 895 | 895 |
| 896 case DocumentGetCSSCanvasContext: | 896 case DocumentGetCSSCanvasContext: |
| 897 return "The -webkit-canvas CSS feature is deprecated. Please use a posit
ioned <canvas> element instead."; | 897 return "The -webkit-canvas CSS feature is deprecated. Please use a posit
ioned <canvas> element instead."; |
| 898 | 898 |
| 899 case ElementCreateShadowRootMultiple: | 899 case ElementCreateShadowRootMultiple: |
| 900 return "Calling Element.createShadowRoot() for an element which already
hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466
8884095336448 for more details."; | 900 return "Calling Element.createShadowRoot() for an element which already
hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466
8884095336448 for more details."; |
| 901 | 901 |
| 902 case ElementCreateShadowRootMultipleWithUserAgentShadowRoot: | 902 case ElementCreateShadowRootMultipleWithUserAgentShadowRoot: |
| 903 return "Calling Element.createShadowRoot() for an element which already
hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/f
eatures/4668884095336448 for more details."; | 903 return "Calling Element.createShadowRoot() for an element which already
hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/f
eatures/4668884095336448 for more details."; |
| 904 | 904 |
| 905 case PrefixedTouchRadiusX: |
| 906 return "'Touch.webkitRadiusX' is deprecated and will be removed in M47,
around November 2015. Please use 'Touch.radiusX' instead."; |
| 907 |
| 908 case PrefixedTouchRadiusY: |
| 909 return "'Touch.webkitRadiusY' is deprecated and will be removed in M47,
around November 2015. Please use 'Touch.radiusY' instead."; |
| 910 |
| 911 case PrefixedTouchRotationAngle: |
| 912 return "'Touch.webkitRotationAngle' is deprecated and will be removed in
M47, around November 2015. Please use 'Touch.rotationAngle' instead."; |
| 913 |
| 914 case PrefixedTouchForce: |
| 915 return "'Touch.webkitForce' is deprecated and will be removed in M47, ar
ound November 2015. Please use 'Touch.force' instead."; |
| 916 |
| 905 // Features that aren't deprecated don't have a deprecation message. | 917 // Features that aren't deprecated don't have a deprecation message. |
| 906 default: | 918 default: |
| 907 return String(); | 919 return String(); |
| 908 } | 920 } |
| 909 } | 921 } |
| 910 | 922 |
| 911 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 923 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 912 { | 924 { |
| 913 ASSERT(feature >= firstCSSProperty); | 925 ASSERT(feature >= firstCSSProperty); |
| 914 ASSERT(feature <= lastUnresolvedCSSProperty); | 926 ASSERT(feature <= lastUnresolvedCSSProperty); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 942 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 954 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 943 { | 955 { |
| 944 // FIXME: We may want to handle stylesheets that have multiple owners | 956 // FIXME: We may want to handle stylesheets that have multiple owners |
| 945 // http://crbug.com/242125 | 957 // http://crbug.com/242125 |
| 946 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 958 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 947 return getFrom(sheetContents->singleOwnerDocument()); | 959 return getFrom(sheetContents->singleOwnerDocument()); |
| 948 return 0; | 960 return 0; |
| 949 } | 961 } |
| 950 | 962 |
| 951 } // namespace blink | 963 } // namespace blink |
| OLD | NEW |