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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: style Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/html/HTMLImageFallbackHelper.h" 5 #include "core/html/HTMLImageFallbackHelper.h"
6 6
7 #include "core/HTMLNames.h" 7 #include "core/HTMLNames.h"
8 #include "core/InputTypeNames.h" 8 #include "core/InputTypeNames.h"
9 #include "core/dom/ElementRareData.h" 9 #include "core/dom/ElementRareData.h"
10 #include "core/dom/Text.h" 10 #include "core/dom/Text.h"
11 #include "core/dom/shadow/ShadowRoot.h" 11 #include "core/dom/shadow/ShadowRoot.h"
12 #include "core/fetch/ImageResource.h"
13 #include "core/html/HTMLDivElement.h" 12 #include "core/html/HTMLDivElement.h"
14 #include "core/html/HTMLElement.h" 13 #include "core/html/HTMLElement.h"
15 #include "core/html/HTMLImageElement.h" 14 #include "core/html/HTMLImageElement.h"
16 #include "core/html/HTMLImageLoader.h" 15 #include "core/html/HTMLImageLoader.h"
17 #include "core/html/HTMLInputElement.h" 16 #include "core/html/HTMLInputElement.h"
18 #include "core/html/HTMLStyleElement.h" 17 #include "core/html/HTMLStyleElement.h"
19 #include "wtf/text/StringBuilder.h" 18 #include "wtf/text/StringBuilder.h"
20 19
21 namespace blink { 20 namespace blink {
22 21
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // managed by LayoutImage. 129 // managed by LayoutImage.
131 if (noImageSourceSpecified(element)) 130 if (noImageSourceSpecified(element))
132 brokenImage->setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone); 131 brokenImage->setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone);
133 else 132 else
134 brokenImage->setInlineStyleProperty(CSSPropertyDisplay, CSSValueInline); 133 brokenImage->setInlineStyleProperty(CSSPropertyDisplay, CSSValueInline);
135 134
136 return newStyle; 135 return newStyle;
137 } 136 }
138 137
139 } // namespace blink 138 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLImageLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698