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

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, 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLImageFallbackHelper.h
diff --git a/Source/core/html/HTMLMenuElement.h b/Source/core/html/HTMLImageFallbackHelper.h
similarity index 67%
copy from Source/core/html/HTMLMenuElement.h
copy to Source/core/html/HTMLImageFallbackHelper.h
index a5f8a81a812d3bc8e9262f3ccfb1a232974d2886..cd2fa4a168299ee1d58556446e0b867e8cae2277 100644
--- a/Source/core/html/HTMLMenuElement.h
+++ b/Source/core/html/HTMLImageFallbackHelper.h
@@ -1,7 +1,5 @@
/*
pdr. 2014/11/14 07:34:17 For new files the lawyercats have asked that we ju
- * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
- * (C) 1999 Antti Koivisto (koivisto@kde.org)
- * Copyright (C) 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2014 Robert Hogan <robhogan@chromium.org>.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -20,22 +18,22 @@
*
*/
-#ifndef HTMLMenuElement_h
-#define HTMLMenuElement_h
+#ifndef HTMLImageFallbackHelper_h
+#define HTMLImageFallbackHelper_h
-#include "core/html/HTMLElement.h"
+#include "wtf/PassRefPtr.h"
namespace blink {
-class HTMLMenuElement final : public HTMLElement {
- DEFINE_WRAPPERTYPEINFO();
-public:
- DECLARE_NODE_FACTORY(HTMLMenuElement);
+class Element;
+class RenderStyle;
-private:
- explicit HTMLMenuElement(Document&);
+class HTMLImageFallbackHelper {
+public:
+ static void createAltTextShadowTree(Element&);
+ static PassRefPtr<RenderStyle> customStyleForAltText(Element&, PassRefPtr<RenderStyle> newStyle);
};
} // namespace blink
-#endif // HTMLMenuElement_h
+#endif // HTMLImageFallbackHelper_h

Powered by Google App Engine
This is Rietveld 408576698