OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Google Inc. | 3 * Copyright (C) 2008 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 RefPtr<SVGImageForContainer> svg_image; | 1011 RefPtr<SVGImageForContainer> svg_image; |
1012 if (image->IsSVGImage()) { | 1012 if (image->IsSVGImage()) { |
1013 KURL url = element->GetDocument().CompleteURL(element->ImageSourceURL()); | 1013 KURL url = element->GetDocument().CompleteURL(element->ImageSourceURL()); |
1014 svg_image = SVGImageForContainer::Create( | 1014 svg_image = SVGImageForContainer::Create( |
1015 ToSVGImage(image), image_element_size_in_pixels, 1, url); | 1015 ToSVGImage(image), image_element_size_in_pixels, 1, url); |
1016 image = svg_image.Get(); | 1016 image = svg_image.Get(); |
1017 } | 1017 } |
1018 | 1018 |
1019 InterpolationQuality interpolation_quality = | 1019 InterpolationQuality interpolation_quality = |
1020 element->EnsureComputedStyle()->ImageRendering() == | 1020 element->EnsureComputedStyle()->ImageRendering() == |
1021 kImageRenderingPixelated | 1021 EImageRendering::kPixelated |
1022 ? kInterpolationNone | 1022 ? kInterpolationNone |
1023 : kInterpolationHigh; | 1023 : kInterpolationHigh; |
1024 RespectImageOrientationEnum should_respect_image_orientation = | 1024 RespectImageOrientationEnum should_respect_image_orientation = |
1025 LayoutObject::ShouldRespectImageOrientation(element->GetLayoutObject()); | 1025 LayoutObject::ShouldRespectImageOrientation(element->GetLayoutObject()); |
1026 ImageOrientation orientation; | 1026 ImageOrientation orientation; |
1027 | 1027 |
1028 if (should_respect_image_orientation == kRespectImageOrientation && | 1028 if (should_respect_image_orientation == kRespectImageOrientation && |
1029 image->IsBitmapImage()) | 1029 image->IsBitmapImage()) |
1030 orientation = ToBitmapImage(image)->CurrentFrameOrientation(); | 1030 orientation = ToBitmapImage(image)->CurrentFrameOrientation(); |
1031 | 1031 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 | 1269 |
1270 DEFINE_TRACE(DragController) { | 1270 DEFINE_TRACE(DragController) { |
1271 visitor->Trace(page_); | 1271 visitor->Trace(page_); |
1272 visitor->Trace(document_under_mouse_); | 1272 visitor->Trace(document_under_mouse_); |
1273 visitor->Trace(drag_initiator_); | 1273 visitor->Trace(drag_initiator_); |
1274 visitor->Trace(drag_state_); | 1274 visitor->Trace(drag_state_); |
1275 visitor->Trace(file_input_element_under_mouse_); | 1275 visitor->Trace(file_input_element_under_mouse_); |
1276 } | 1276 } |
1277 | 1277 |
1278 } // namespace blink | 1278 } // namespace blink |
OLD | NEW |