| 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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 | 883 |
| 884 case DeviceOrientationInsecureOrigin: | 884 case DeviceOrientationInsecureOrigin: |
| 885 return "The deviceorientation event is deprecated on insecure origins, a
nd support will be removed in the future. You should consider switching your app
lication to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more d
etails."; | 885 return "The deviceorientation event is deprecated on insecure origins, a
nd support will be removed in the future. You should consider switching your app
lication to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more d
etails."; |
| 886 | 886 |
| 887 case GeolocationInsecureOrigin: | 887 case GeolocationInsecureOrigin: |
| 888 return "getCurrentPosition() and watchPosition() are deprecated on insec
ure origins, and support will be removed in the future. You should consider swit
ching your application to a secure origin, such as HTTPS. See https://goo.gl/rSt
TGz for more details."; | 888 return "getCurrentPosition() and watchPosition() are deprecated on insec
ure origins, and support will be removed in the future. You should consider swit
ching your application to a secure origin, such as HTTPS. See https://goo.gl/rSt
TGz for more details."; |
| 889 | 889 |
| 890 case GetUserMediaInsecureOrigin: | 890 case GetUserMediaInsecureOrigin: |
| 891 return "getUserMedia() no longer works on insecure origins. To use this
feature, you should consider switching your application to a secure origin, such
as HTTPS. See https://goo.gl/rStTGz for more details."; | 891 return "getUserMedia() no longer works on insecure origins. To use this
feature, you should consider switching your application to a secure origin, such
as HTTPS. See https://goo.gl/rStTGz for more details."; |
| 892 | 892 |
| 893 case FullscreenInsecureOrigin: | |
| 894 return "requestFullscreen() is deprecated on insecure origins, and suppo
rt will be removed in the future. You should consider switching your application
to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."
; | |
| 895 | |
| 896 case EncryptedMediaInsecureOrigin: | 893 case EncryptedMediaInsecureOrigin: |
| 897 return "requestMediaKeySystemAccess() is deprecated on insecure origins
in the specification. Support will be removed in the future. You should consider
switching your application to a secure origin, such as HTTPS. See https://goo.g
l/rStTGz for more details."; | 894 return "requestMediaKeySystemAccess() is deprecated on insecure origins
in the specification. Support will be removed in the future. You should consider
switching your application to a secure origin, such as HTTPS. See https://goo.g
l/rStTGz for more details."; |
| 898 | 895 |
| 899 case DocumentGetCSSCanvasContext: | 896 case DocumentGetCSSCanvasContext: |
| 900 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."; |
| 901 | 898 |
| 902 case ElementCreateShadowRootMultiple: | 899 case ElementCreateShadowRootMultiple: |
| 903 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."; |
| 904 | 901 |
| 905 case ElementCreateShadowRootMultipleWithUserAgentShadowRoot: | 902 case ElementCreateShadowRootMultipleWithUserAgentShadowRoot: |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 982 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 986 { | 983 { |
| 987 // FIXME: We may want to handle stylesheets that have multiple owners | 984 // FIXME: We may want to handle stylesheets that have multiple owners |
| 988 // http://crbug.com/242125 | 985 // http://crbug.com/242125 |
| 989 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 986 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 990 return getFrom(sheetContents->singleOwnerDocument()); | 987 return getFrom(sheetContents->singleOwnerDocument()); |
| 991 return 0; | 988 return 0; |
| 992 } | 989 } |
| 993 | 990 |
| 994 } // namespace blink | 991 } // namespace blink |
| OLD | NEW |