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

Unified Diff: Source/core/html/HTMLImageFallbackHelper.h

Issue 481753002: Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLImageFallbackHelper.h
diff --git a/Source/core/html/HTMLImageFallbackHelper.h b/Source/core/html/HTMLImageFallbackHelper.h
new file mode 100644
index 0000000000000000000000000000000000000000..f73a304c4b248e4969faada744fe2f3358880618
--- /dev/null
+++ b/Source/core/html/HTMLImageFallbackHelper.h
@@ -0,0 +1,23 @@
+// 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 HTMLImageFallbackHelper_h
+#define HTMLImageFallbackHelper_h
+
+#include "wtf/PassRefPtr.h"
+
+namespace blink {
+
+class Element;
+class RenderStyle;
+
+class HTMLImageFallbackHelper {
+public:
+ static void createAltTextShadowTree(Element&);
+ static PassRefPtr<RenderStyle> customStyleForAltText(Element&, PassRefPtr<RenderStyle> newStyle);
+};
+
+} // namespace blink
+
+#endif // HTMLImageFallbackHelper_h

Powered by Google App Engine
This is Rietveld 408576698