OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 } | 356 } |
357 | 357 |
358 bool FillLayer::hasOpaqueImage(const RenderObject* renderer) const | 358 bool FillLayer::hasOpaqueImage(const RenderObject* renderer) const |
359 { | 359 { |
360 if (!m_image) | 360 if (!m_image) |
361 return false; | 361 return false; |
362 | 362 |
363 if (m_composite == CompositeClear || m_composite == CompositeCopy) | 363 if (m_composite == CompositeClear || m_composite == CompositeCopy) |
364 return true; | 364 return true; |
365 | 365 |
366 if (m_blendMode != blink::WebBlendModeNormal) | 366 if (m_blendMode != WebBlendModeNormal) |
367 return false; | 367 return false; |
368 | 368 |
369 if (m_composite == CompositeSourceOver) | 369 if (m_composite == CompositeSourceOver) |
370 return m_image->knownToBeOpaque(renderer); | 370 return m_image->knownToBeOpaque(renderer); |
371 | 371 |
372 return false; | 372 return false; |
373 } | 373 } |
374 | 374 |
375 bool FillLayer::hasRepeatXY() const | 375 bool FillLayer::hasRepeatXY() const |
376 { | 376 { |
377 return m_repeatX == RepeatFill && m_repeatY == RepeatFill; | 377 return m_repeatX == RepeatFill && m_repeatY == RepeatFill; |
378 } | 378 } |
379 | 379 |
380 } // namespace blink | 380 } // namespace blink |
OLD | NEW |