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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 | 891 |
892 case GeolocationInsecureOrigin: | 892 case GeolocationInsecureOrigin: |
893 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."; | 893 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."; |
894 | 894 |
895 case GetUserMediaInsecureOrigin: | 895 case GetUserMediaInsecureOrigin: |
896 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."; | 896 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."; |
897 | 897 |
898 case EncryptedMediaInsecureOrigin: | 898 case EncryptedMediaInsecureOrigin: |
899 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."; | 899 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."; |
900 | 900 |
901 case DocumentGetCSSCanvasContext: | |
902 return "The -webkit-canvas CSS feature is deprecated. Please use a posit
ioned <canvas> element instead."; | |
903 | |
904 case ElementCreateShadowRootMultiple: | 901 case ElementCreateShadowRootMultiple: |
905 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."; | 902 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."; |
906 | 903 |
907 case ElementCreateShadowRootMultipleWithUserAgentShadowRoot: | 904 case ElementCreateShadowRootMultipleWithUserAgentShadowRoot: |
908 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."; | 905 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."; |
909 | 906 |
910 case CSSDeepCombinator: | 907 case CSSDeepCombinator: |
911 return "/deep/ combinator is deprecated. See https://www.chromestatus.co
m/features/6750456638341120 for more details."; | 908 return "/deep/ combinator is deprecated. See https://www.chromestatus.co
m/features/6750456638341120 for more details."; |
912 | 909 |
913 case CSSSelectorPseudoShadow: | 910 case CSSSelectorPseudoShadow: |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 980 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
984 { | 981 { |
985 // FIXME: We may want to handle stylesheets that have multiple owners | 982 // FIXME: We may want to handle stylesheets that have multiple owners |
986 // https://crbug.com/242125 | 983 // https://crbug.com/242125 |
987 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 984 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
988 return getFrom(sheetContents->singleOwnerDocument()); | 985 return getFrom(sheetContents->singleOwnerDocument()); |
989 return 0; | 986 return 0; |
990 } | 987 } |
991 | 988 |
992 } // namespace blink | 989 } // namespace blink |
OLD | NEW |