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 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 m_mediaForPositionNotification.remove(at); | 996 m_mediaForPositionNotification.remove(at); |
997 } | 997 } |
998 | 998 |
999 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect
) | 999 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect
) |
1000 { | 1000 { |
1001 for (auto& media : m_mediaForPositionNotification) { | 1001 for (auto& media : m_mediaForPositionNotification) { |
1002 media->notifyPositionMayHaveChanged(visibleRect); | 1002 media->notifyPositionMayHaveChanged(visibleRect); |
1003 } | 1003 } |
1004 } | 1004 } |
1005 | 1005 |
| 1006 void LayoutView::updateFromStyle() |
| 1007 { |
| 1008 LayoutBlockFlow::updateFromStyle(); |
| 1009 |
| 1010 // LayoutView of the main frame is responsible for painting base background. |
| 1011 if (!document().ownerElement()) |
| 1012 setHasBoxDecorationBackground(true); |
| 1013 } |
| 1014 |
| 1015 bool LayoutView::allowsOverflowClip() const |
| 1016 { |
| 1017 return document().settings() && document().settings()->rootLayerScrolls(); |
| 1018 } |
| 1019 |
1006 } // namespace blink | 1020 } // namespace blink |
OLD | NEW |