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

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

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebFrameCSSCallbackTest tests Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/StyleEngine.cpp ('k') | Source/core/page/Page.h » ('j') | 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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 { 717 {
718 if (sheet) 718 if (sheet)
719 return getFrom(sheet->contents()); 719 return getFrom(sheet->contents());
720 return 0; 720 return 0;
721 } 721 }
722 722
723 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 723 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
724 { 724 {
725 // FIXME: We may want to handle stylesheets that have multiple owners 725 // FIXME: We may want to handle stylesheets that have multiple owners
726 // http://crbug.com/242125 726 // http://crbug.com/242125
727 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 727 if (sheetContents && sheetContents->hasSingleOwnerNode())
728 return getFrom(sheetContents->singleOwnerDocument()); 728 return getFrom(sheetContents->singleOwnerDocument());
729 return 0; 729 return 0;
730 } 730 }
731 731
732 } // namespace WebCore 732 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/StyleEngine.cpp ('k') | Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698