Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.cpp

Issue 1416793004: Remove support for -webkit-canvas and Document.getCSSCanvasContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/html/HTMLCanvasElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698