| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 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 22 matching lines...) Expand all Loading... |
| 33 #include "platform/geometry/FloatRect.h" | 33 #include "platform/geometry/FloatRect.h" |
| 34 #include "platform/geometry/FloatSize.h" | 34 #include "platform/geometry/FloatSize.h" |
| 35 #include "platform/graphics/BitmapImage.h" | 35 #include "platform/graphics/BitmapImage.h" |
| 36 #include "platform/graphics/DeferredImageDecoder.h" | 36 #include "platform/graphics/DeferredImageDecoder.h" |
| 37 #include "platform/graphics/GraphicsContext.h" | 37 #include "platform/graphics/GraphicsContext.h" |
| 38 #include "platform/graphics/paint/PaintRecorder.h" | 38 #include "platform/graphics/paint/PaintRecorder.h" |
| 39 #include "platform/graphics/paint/PaintShader.h" | 39 #include "platform/graphics/paint/PaintShader.h" |
| 40 #include "platform/instrumentation/PlatformInstrumentation.h" | 40 #include "platform/instrumentation/PlatformInstrumentation.h" |
| 41 #include "platform/instrumentation/tracing/TraceEvent.h" | 41 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 42 #include "platform/network/mime/MIMETypeRegistry.h" | 42 #include "platform/network/mime/MIMETypeRegistry.h" |
| 43 #include "platform/wtf/StdLibExtras.h" |
| 43 #include "public/platform/Platform.h" | 44 #include "public/platform/Platform.h" |
| 44 #include "public/platform/WebData.h" | 45 #include "public/platform/WebData.h" |
| 45 #include "third_party/skia/include/core/SkImage.h" | 46 #include "third_party/skia/include/core/SkImage.h" |
| 46 #include "wtf/StdLibExtras.h" | |
| 47 | 47 |
| 48 #include <math.h> | 48 #include <math.h> |
| 49 #include <tuple> | 49 #include <tuple> |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 | 52 |
| 53 Image::Image(ImageObserver* observer) | 53 Image::Image(ImageObserver* observer) |
| 54 : m_imageObserver(observer), m_imageObserverDisabled(false) {} | 54 : m_imageObserver(observer), m_imageObserverDisabled(false) {} |
| 55 | 55 |
| 56 Image::~Image() {} | 56 Image::~Image() {} |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 FloatRect subset = dest; | 378 FloatRect subset = dest; |
| 379 subset.setX((dest.x() - tile.x()) / scale.width()); | 379 subset.setX((dest.x() - tile.x()) / scale.width()); |
| 380 subset.setY((dest.y() - tile.y()) / scale.height()); | 380 subset.setY((dest.y() - tile.y()) / scale.height()); |
| 381 subset.setWidth(dest.width() / scale.width()); | 381 subset.setWidth(dest.width() / scale.width()); |
| 382 subset.setHeight(dest.height() / scale.height()); | 382 subset.setHeight(dest.height() / scale.height()); |
| 383 | 383 |
| 384 return subset; | 384 return subset; |
| 385 } | 385 } |
| 386 | 386 |
| 387 } // namespace blink | 387 } // namespace blink |
| OLD | NEW |