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

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

Issue 26489005: Relax HTMLBodyElement's scrollTop/Left property set and get operations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@issue_290895
Patch Set: Relax HTMLBodyElement's scrollTop/Left property set and get operations. Created 7 years, 2 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
« no previous file with comments | « Source/core/page/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 /* 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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 669
670 case ConsoleMarkTimeline: 670 case ConsoleMarkTimeline:
671 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead."; 671 return "console.markTimeline is deprecated. Please use the console.timeS tamp instead.";
672 672
673 case FileError: 673 case FileError:
674 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'."; 674 return "FileError is deprecated. Please use the 'name' or 'message' attr ibutes of DOMError rather than 'code'.";
675 675
676 case EventReturnValue: 676 case EventReturnValue:
677 return "event.returnValue is deprecated. Please use the standard event.p reventDefault() instead."; 677 return "event.returnValue is deprecated. Please use the standard event.p reventDefault() instead.";
678 678
679 case ScrollTopBody:
680 return "body.scrollTop is deprecated in strict mode. Please use 'documen tElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mod e.";
681 case ScrollLeftBody:
682 return "body.scrollLeft is deprecated in strict mode. Please use 'docume ntElement.scrollLeft' if in strict mode and 'body.scrollLeft' only if in quirks mode.";
679 // Features that aren't deprecated don't have a deprecation message. 683 // Features that aren't deprecated don't have a deprecation message.
680 default: 684 default:
681 return String(); 685 return String();
682 } 686 }
683 } 687 }
684 688
685 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 689 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
686 { 690 {
687 ASSERT(feature >= firstCSSProperty); 691 ASSERT(feature >= firstCSSProperty);
688 ASSERT(feature <= lastCSSProperty); 692 ASSERT(feature <= lastCSSProperty);
(...skipping 29 matching lines...) Expand all
718 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 722 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
719 { 723 {
720 // FIXME: We may want to handle stylesheets that have multiple owners 724 // FIXME: We may want to handle stylesheets that have multiple owners
721 // http://crbug.com/242125 725 // http://crbug.com/242125
722 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 726 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
723 return getFrom(sheetContents->singleOwnerDocument()); 727 return getFrom(sheetContents->singleOwnerDocument());
724 return 0; 728 return 0;
725 } 729 }
726 730
727 } // namespace WebCore 731 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698