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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 case SVGSVGElementSuspendRedraw: | 870 case SVGSVGElementSuspendRedraw: |
871 return "'SVGSVGElement.suspendRedraw()' is deprecated, please do not use
it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg_
_SVGSVGElement__suspendRedraw)."; | 871 return "'SVGSVGElement.suspendRedraw()' is deprecated, please do not use
it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg_
_SVGSVGElement__suspendRedraw)."; |
872 | 872 |
873 case SVGSVGElementUnsuspendRedraw: | 873 case SVGSVGElementUnsuspendRedraw: |
874 return "'SVGSVGElement.unsuspendRedraw()' is deprecated, please do not u
se it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__sv
g__SVGSVGElement__unsuspendRedraw)."; | 874 return "'SVGSVGElement.unsuspendRedraw()' is deprecated, please do not u
se it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__sv
g__SVGSVGElement__unsuspendRedraw)."; |
875 | 875 |
876 case SVGSVGElementUnsuspendRedrawAll: | 876 case SVGSVGElementUnsuspendRedrawAll: |
877 return "'SVGSVGElement.unsuspendRedrawAll()' is deprecated, please do no
t use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#_
_svg__SVGSVGElement__unsuspendRedrawAll)."; | 877 return "'SVGSVGElement.unsuspendRedrawAll()' is deprecated, please do no
t use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#_
_svg__SVGSVGElement__unsuspendRedrawAll)."; |
878 | 878 |
879 // Powerful features on insecure origins (https://goo.gl/rStTGz) | 879 // Powerful features on insecure origins (https://goo.gl/rStTGz) |
| 880 case DeviceMotionInsecureOrigin: |
| 881 return "The devicemotion event is deprecated on insecure origins, and su
pport will be removed in the future. You should consider switching your applicat
ion to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more detail
s."; |
| 882 |
| 883 case DeviceOrientationInsecureOrigin: |
| 884 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 |
880 case GeolocationInsecureOrigin: | 886 case GeolocationInsecureOrigin: |
881 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."; | 887 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."; |
882 | 888 |
883 case GetUserMediaInsecureOrigin: | 889 case GetUserMediaInsecureOrigin: |
884 return "getUserMedia() is deprecated on insecure origins, and support wi
ll 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."; | 890 return "getUserMedia() is deprecated on insecure origins, and support wi
ll 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."; |
885 | 891 |
886 case FullscreenInsecureOrigin: | 892 case FullscreenInsecureOrigin: |
887 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."
; | 893 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."
; |
888 | 894 |
889 case EncryptedMediaInsecureOrigin: | 895 case EncryptedMediaInsecureOrigin: |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 999 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
994 { | 1000 { |
995 // FIXME: We may want to handle stylesheets that have multiple owners | 1001 // FIXME: We may want to handle stylesheets that have multiple owners |
996 // http://crbug.com/242125 | 1002 // http://crbug.com/242125 |
997 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1003 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
998 return getFrom(sheetContents->singleOwnerDocument()); | 1004 return getFrom(sheetContents->singleOwnerDocument()); |
999 return 0; | 1005 return 0; |
1000 } | 1006 } |
1001 | 1007 |
1002 } // namespace blink | 1008 } // namespace blink |
OLD | NEW |