| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HTML_HTML_IMAGE_FALLBACK_HELPER_H_ |
| #define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_HTML_IMAGE_FALLBACK_HELPER_H_ |
| |
| #include "base/memory/scoped_refptr.h" |
| #include "third_party/blink/renderer/platform/wtf/allocator.h" |
| |
| namespace blink { |
| |
| class Element; |
| class ComputedStyle; |
| |
| class HTMLImageFallbackHelper { |
| STATIC_ONLY(HTMLImageFallbackHelper); |
| |
| public: |
| static void CreateAltTextShadowTree(Element&); |
| static scoped_refptr<ComputedStyle> CustomStyleForAltText( |
| Element&, |
| scoped_refptr<ComputedStyle> new_style); |
| }; |
| |
| } // namespace blink |
| |
| #endif // THIRD_PARTY_BLINK_RENDERER_CORE_HTML_HTML_IMAGE_FALLBACK_HELPER_H_ |