| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |