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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
pdr. 2014/11/14 07:34:17 For new files the lawyercats have asked that we ju
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2014 Robert Hogan <robhogan@chromium.org>.
3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2010 Apple Inc. All rights reserved.
5 * 3 *
6 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
10 * 8 *
11 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 12 * Library General Public License for more details.
15 * 13 *
16 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
20 * 18 *
21 */ 19 */
22 20
23 #ifndef HTMLMenuElement_h 21 #ifndef HTMLImageFallbackHelper_h
24 #define HTMLMenuElement_h 22 #define HTMLImageFallbackHelper_h
25 23
26 #include "core/html/HTMLElement.h" 24 #include "wtf/PassRefPtr.h"
27 25
28 namespace blink { 26 namespace blink {
29 27
30 class HTMLMenuElement final : public HTMLElement { 28 class Element;
31 DEFINE_WRAPPERTYPEINFO(); 29 class RenderStyle;
30
31 class HTMLImageFallbackHelper {
32 public: 32 public:
33 DECLARE_NODE_FACTORY(HTMLMenuElement); 33 static void createAltTextShadowTree(Element&);
34 34 static PassRefPtr<RenderStyle> customStyleForAltText(Element&, PassRefPtr<Re nderStyle> newStyle);
35 private:
36 explicit HTMLMenuElement(Document&);
37 }; 35 };
38 36
39 } // namespace blink 37 } // namespace blink
40 38
41 #endif // HTMLMenuElement_h 39 #endif // HTMLImageFallbackHelper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698