| OLD | NEW |
| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/html/HTMLImageFallbackHelper.h" | 6 #include "core/html/HTMLImageFallbackHelper.h" |
| 7 | 7 |
| 8 #include "core/HTMLNames.h" | 8 #include "core/HTMLNames.h" |
| 9 #include "core/InputTypeNames.h" | 9 #include "core/InputTypeNames.h" |
| 10 #include "core/dom/ElementRareData.h" | 10 #include "core/dom/ElementRareData.h" |
| 11 #include "core/dom/Text.h" | 11 #include "core/dom/Text.h" |
| 12 #include "core/dom/shadow/ShadowRoot.h" | 12 #include "core/dom/shadow/ShadowRoot.h" |
| 13 #include "core/fetch/ImageResource.h" | |
| 14 #include "core/html/FormDataList.h" | 13 #include "core/html/FormDataList.h" |
| 15 #include "core/html/HTMLDivElement.h" | 14 #include "core/html/HTMLDivElement.h" |
| 16 #include "core/html/HTMLElement.h" | 15 #include "core/html/HTMLElement.h" |
| 17 #include "core/html/HTMLImageElement.h" | 16 #include "core/html/HTMLImageElement.h" |
| 18 #include "core/html/HTMLImageLoader.h" | 17 #include "core/html/HTMLImageLoader.h" |
| 19 #include "core/html/HTMLInputElement.h" | 18 #include "core/html/HTMLInputElement.h" |
| 20 #include "core/html/HTMLStyleElement.h" | 19 #include "core/html/HTMLStyleElement.h" |
| 21 #include "wtf/PassOwnPtr.h" | 20 #include "wtf/PassOwnPtr.h" |
| 22 #include "wtf/text/StringBuilder.h" | 21 #include "wtf/text/StringBuilder.h" |
| 23 | 22 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // This preserves legacy behaviour originally defined when alt-text was mana
ged by LayoutImage. | 106 // This preserves legacy behaviour originally defined when alt-text was mana
ged by LayoutImage. |
| 108 if (noImageSourceSpecified(element)) | 107 if (noImageSourceSpecified(element)) |
| 109 brokenImage->setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone); | 108 brokenImage->setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone); |
| 110 else | 109 else |
| 111 brokenImage->setInlineStyleProperty(CSSPropertyDisplay, CSSValueInline); | 110 brokenImage->setInlineStyleProperty(CSSPropertyDisplay, CSSValueInline); |
| 112 | 111 |
| 113 return newStyle; | 112 return newStyle; |
| 114 } | 113 } |
| 115 | 114 |
| 116 } // namespace blink | 115 } // namespace blink |
| OLD | NEW |