| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void StyleGeneratedImage::addClient(LayoutObject* layoutObject) | 82 void StyleGeneratedImage::addClient(LayoutObject* layoutObject) |
| 83 { | 83 { |
| 84 m_imageGeneratorValue->addClient(layoutObject, IntSize()); | 84 m_imageGeneratorValue->addClient(layoutObject, IntSize()); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void StyleGeneratedImage::removeClient(LayoutObject* layoutObject) | 87 void StyleGeneratedImage::removeClient(LayoutObject* layoutObject) |
| 88 { | 88 { |
| 89 m_imageGeneratorValue->removeClient(layoutObject); | 89 m_imageGeneratorValue->removeClient(layoutObject); |
| 90 } | 90 } |
| 91 | 91 |
| 92 PassRefPtr<Image> StyleGeneratedImage::image(const LayoutObject* layoutObject, c
onst IntSize& size, float) const | 92 PassRefPtr<Image> StyleGeneratedImage::image(const LayoutObject* layoutObject, c
onst LayoutSize& size, float) const |
| 93 { | 93 { |
| 94 return m_imageGeneratorValue->image(layoutObject, size); | 94 return m_imageGeneratorValue->image(layoutObject, roundedIntSize(size)); |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool StyleGeneratedImage::knownToBeOpaque(const LayoutObject* layoutObject) cons
t | 97 bool StyleGeneratedImage::knownToBeOpaque(const LayoutObject* layoutObject) cons
t |
| 98 { | 98 { |
| 99 return m_imageGeneratorValue->knownToBeOpaque(layoutObject); | 99 return m_imageGeneratorValue->knownToBeOpaque(layoutObject); |
| 100 } | 100 } |
| 101 | 101 |
| 102 DEFINE_TRACE(StyleGeneratedImage) | 102 DEFINE_TRACE(StyleGeneratedImage) |
| 103 { | 103 { |
| 104 visitor->trace(m_imageGeneratorValue); | 104 visitor->trace(m_imageGeneratorValue); |
| 105 StyleImage::trace(visitor); | 105 StyleImage::trace(visitor); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } | 108 } |
| OLD | NEW |