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

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

Issue 1158433004: Remove Attr child nodes (making Attr a Node, not a ContainerNode) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address feedback Created 5 years, 6 months 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 | Annotate | Revision Log
« Source/core/dom/Attr.cpp ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 870
871 case SVGSVGElementUnsuspendRedraw: 871 case SVGSVGElementUnsuspendRedraw:
872 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)."; 872 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).";
873 873
874 case SVGSVGElementUnsuspendRedrawAll: 874 case SVGSVGElementUnsuspendRedrawAll:
875 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)."; 875 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).";
876 876
877 case ServiceWorkerClientPostMessage: 877 case ServiceWorkerClientPostMessage:
878 return "'Client.postMessage()' is an experimental API and may change. Se e https://github.com/slightlyoff/ServiceWorker/issues/609."; 878 return "'Client.postMessage()' is an experimental API and may change. Se e https://github.com/slightlyoff/ServiceWorker/issues/609.";
879 879
880 case AttrChildAccess:
881 case AttrChildChange:
882 return "Attr child nodes are deprecated and will be removed in M45, arou nd August 2015. Please use 'Attr.value' instead.";
883
884 // Powerful features on insecure origins (https://goo.gl/rStTGz) 880 // Powerful features on insecure origins (https://goo.gl/rStTGz)
885 case GeolocationInsecureOrigin: 881 case GeolocationInsecureOrigin:
886 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 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 883
888 case GetUserMediaInsecureOrigin: 884 case GetUserMediaInsecureOrigin:
889 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 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 886
891 case FullscreenInsecureOrigin: 887 case FullscreenInsecureOrigin:
892 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 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 889
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 942 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
947 { 943 {
948 // FIXME: We may want to handle stylesheets that have multiple owners 944 // FIXME: We may want to handle stylesheets that have multiple owners
949 // http://crbug.com/242125 945 // http://crbug.com/242125
950 if (sheetContents && sheetContents->hasSingleOwnerNode()) 946 if (sheetContents && sheetContents->hasSingleOwnerNode())
951 return getFrom(sheetContents->singleOwnerDocument()); 947 return getFrom(sheetContents->singleOwnerDocument());
952 return 0; 948 return 0;
953 } 949 }
954 950
955 } // namespace blink 951 } // namespace blink
OLDNEW
« Source/core/dom/Attr.cpp ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698