| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights |
| 5 * reserved. | 5 * reserved. |
| 6 * Copyright (C) 2010 Google Inc. All rights reserved. | 6 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "core/html/parser/HTMLParserIdioms.h" | 46 #include "core/html/parser/HTMLParserIdioms.h" |
| 47 #include "core/html/parser/HTMLSrcsetParser.h" | 47 #include "core/html/parser/HTMLSrcsetParser.h" |
| 48 #include "core/imagebitmap/ImageBitmapOptions.h" | 48 #include "core/imagebitmap/ImageBitmapOptions.h" |
| 49 #include "core/inspector/ConsoleMessage.h" | 49 #include "core/inspector/ConsoleMessage.h" |
| 50 #include "core/layout/LayoutBlockFlow.h" | 50 #include "core/layout/LayoutBlockFlow.h" |
| 51 #include "core/layout/LayoutImage.h" | 51 #include "core/layout/LayoutImage.h" |
| 52 #include "core/layout/api/LayoutImageItem.h" | 52 #include "core/layout/api/LayoutImageItem.h" |
| 53 #include "core/page/Page.h" | 53 #include "core/page/Page.h" |
| 54 #include "core/style/ContentData.h" | 54 #include "core/style/ContentData.h" |
| 55 #include "core/svg/graphics/SVGImageForContainer.h" | 55 #include "core/svg/graphics/SVGImageForContainer.h" |
| 56 #include "platform/ContentType.h" | |
| 57 #include "platform/EventDispatchForbiddenScope.h" | 56 #include "platform/EventDispatchForbiddenScope.h" |
| 58 #include "platform/MIMETypeRegistry.h" | 57 #include "platform/network/mime/ContentType.h" |
| 58 #include "platform/network/mime/MIMETypeRegistry.h" |
| 59 #include "platform/weborigin/SecurityPolicy.h" | 59 #include "platform/weborigin/SecurityPolicy.h" |
| 60 | 60 |
| 61 namespace blink { | 61 namespace blink { |
| 62 | 62 |
| 63 using namespace HTMLNames; | 63 using namespace HTMLNames; |
| 64 | 64 |
| 65 class HTMLImageElement::ViewportChangeListener final | 65 class HTMLImageElement::ViewportChangeListener final |
| 66 : public MediaQueryListListener { | 66 : public MediaQueryListListener { |
| 67 public: | 67 public: |
| 68 static ViewportChangeListener* create(HTMLImageElement* element) { | 68 static ViewportChangeListener* create(HTMLImageElement* element) { |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 ImageResource* image = cachedImage(); | 885 ImageResource* image = cachedImage(); |
| 886 if (!image) | 886 if (!image) |
| 887 return IntSize(); | 887 return IntSize(); |
| 888 LayoutSize lSize = image->imageSize( | 888 LayoutSize lSize = image->imageSize( |
| 889 LayoutObject::shouldRespectImageOrientation(layoutObject()), 1.0f); | 889 LayoutObject::shouldRespectImageOrientation(layoutObject()), 1.0f); |
| 890 DCHECK(lSize.fraction().isZero()); | 890 DCHECK(lSize.fraction().isZero()); |
| 891 return IntSize(lSize.width().toInt(), lSize.height().toInt()); | 891 return IntSize(lSize.width().toInt(), lSize.height().toInt()); |
| 892 } | 892 } |
| 893 | 893 |
| 894 } // namespace blink | 894 } // namespace blink |
| OLD | NEW |