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

Side by Side Diff: WebKit/chromium/src/ContextFeaturesClientImpl.cpp

Issue 10700153: Stops asking WebPersmissionClient for enabling Web Components. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/Source/
Patch Set: Created 8 years, 5 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 | « no previous file | 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 namespace WebKit { 38 namespace WebKit {
39 39
40 bool ContextFeaturesClientImpl::isEnabled(WebCore::Document* document, WebCore:: ContextFeatures::FeatureType type, bool defaultValue) 40 bool ContextFeaturesClientImpl::isEnabled(WebCore::Document* document, WebCore:: ContextFeatures::FeatureType type, bool defaultValue)
41 { 41 {
42 if (!m_client) 42 if (!m_client)
43 return defaultValue; 43 return defaultValue;
44 44
45 switch (type) { 45 switch (type) {
46 case WebCore::ContextFeatures::ShadowDOM: 46 case WebCore::ContextFeatures::ShadowDOM:
47 case WebCore::ContextFeatures::StyleScoped: 47 case WebCore::ContextFeatures::StyleScoped:
48 return m_client->allowWebComponents(WebDocument(document), defaultValue) ; 48 return defaultValue;
49 default: 49 default:
50 return defaultValue; 50 return defaultValue;
51 } 51 }
52 } 52 }
53 53
54 } // namespace WebKit 54 } // namespace WebKit
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698