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

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

Issue 816923002: Switch FontFaceSet#ready from a method to an attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « Source/core/css/FontFaceSet.idl ('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 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 787
788 case ConsoleTimeline: 788 case ConsoleTimeline:
789 return "console.timeline is deprecated. Please use the console.time inst ead."; 789 return "console.timeline is deprecated. Please use the console.time inst ead.";
790 790
791 case ConsoleTimelineEnd: 791 case ConsoleTimelineEnd:
792 return "console.timelineEnd is deprecated. Please use the console.timeEn d instead."; 792 return "console.timelineEnd is deprecated. Please use the console.timeEn d instead.";
793 793
794 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: 794 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload:
795 return "Synchronous XMLHttpRequest on the main thread is deprecated beca use of its detrimental effects to the end user's experience. For more help, chec k http://xhr.spec.whatwg.org/."; 795 return "Synchronous XMLHttpRequest on the main thread is deprecated beca use of its detrimental effects to the end user's experience. For more help, chec k http://xhr.spec.whatwg.org/.";
796 796
797 case FontFaceSetReady:
798 return "document.fonts.ready() method is going to be replaced with docum ent.fonts.ready attribute in future releases. Please be prepared. For more help, check https://code.google.com/p/chromium/issues/detail?id=392077#c3 .";
799
800 case DOMImplementationHasFeatureReturnFalse: 797 case DOMImplementationHasFeatureReturnFalse:
801 return "'DOMImplementation.hasFeature()' returning false is deprecated. Please do not use it, as per DOM it should always return true (https://dom.spec. whatwg.org/#dom-domimplementation-hasfeature)."; 798 return "'DOMImplementation.hasFeature()' returning false is deprecated. Please do not use it, as per DOM it should always return true (https://dom.spec. whatwg.org/#dom-domimplementation-hasfeature).";
802 799
803 case GetMatchedCSSRules: 800 case GetMatchedCSSRules:
804 return "'getMatchedCSSRules()' is deprecated. For more help, check https ://code.google.com/p/chromium/issues/detail?id=437569#c2"; 801 return "'getMatchedCSSRules()' is deprecated. For more help, check https ://code.google.com/p/chromium/issues/detail?id=437569#c2";
805 802
806 case DocumentSetCharset: 803 case DocumentSetCharset:
807 return "Setting 'Document.charset' is deprecated. Please use '<meta char set=\"UTF-8\">' instead."; 804 return "Setting 'Document.charset' is deprecated. Please use '<meta char set=\"UTF-8\">' instead.";
808 805
809 case PrefixedImageSmoothingEnabled: 806 case PrefixedImageSmoothingEnabled:
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 874 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
878 { 875 {
879 // FIXME: We may want to handle stylesheets that have multiple owners 876 // FIXME: We may want to handle stylesheets that have multiple owners
880 // http://crbug.com/242125 877 // http://crbug.com/242125
881 if (sheetContents && sheetContents->hasSingleOwnerNode()) 878 if (sheetContents && sheetContents->hasSingleOwnerNode())
882 return getFrom(sheetContents->singleOwnerDocument()); 879 return getFrom(sheetContents->singleOwnerDocument());
883 return 0; 880 return 0;
884 } 881 }
885 882
886 } // namespace blink 883 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/FontFaceSet.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698