OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 static inline bool rendererObscuresBackground(RenderBox* rootBox) | 235 static inline bool rendererObscuresBackground(RenderBox* rootBox) |
236 { | 236 { |
237 ASSERT(rootBox); | 237 ASSERT(rootBox); |
238 RenderStyle* style = rootBox->style(); | 238 RenderStyle* style = rootBox->style(); |
239 if (style->opacity() != 1 | 239 if (style->opacity() != 1 |
240 || style->hasFilter() | 240 || style->hasFilter() |
241 || style->hasTransform()) | 241 || style->hasTransform()) |
242 return false; | 242 return false; |
243 | 243 |
244 if (rootBox->style()->backgroundClip() == TextFillBox) | |
245 return false; | |
246 | |
247 return true; | 244 return true; |
248 } | 245 } |
249 | 246 |
250 void RenderView::paintBoxDecorationBackground(PaintInfo& paintInfo, const Layout
Point&) | 247 void RenderView::paintBoxDecorationBackground(PaintInfo& paintInfo, const Layout
Point&) |
251 { | 248 { |
252 if (!view()) | 249 if (!view()) |
253 return; | 250 return; |
254 | 251 |
255 bool shouldPaintBackground = true; | 252 bool shouldPaintBackground = true; |
256 Node* documentElement = document().documentElement(); | 253 Node* documentElement = document().documentElement(); |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 m_iframes.remove(iframe); | 703 m_iframes.remove(iframe); |
707 } | 704 } |
708 | 705 |
709 void RenderView::updateIFramesAfterLayout() | 706 void RenderView::updateIFramesAfterLayout() |
710 { | 707 { |
711 for (auto& iframe: m_iframes) | 708 for (auto& iframe: m_iframes) |
712 iframe->updateWidgetBounds(); | 709 iframe->updateWidgetBounds(); |
713 } | 710 } |
714 | 711 |
715 } // namespace blink | 712 } // namespace blink |
OLD | NEW |