| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 void FrameView::recalcOverflowAfterStyleChange() | 214 void FrameView::recalcOverflowAfterStyleChange() |
| 215 { | 215 { |
| 216 RenderView* renderView = this->renderView(); | 216 RenderView* renderView = this->renderView(); |
| 217 RELEASE_ASSERT(renderView); | 217 RELEASE_ASSERT(renderView); |
| 218 if (!renderView->needsOverflowRecalcAfterStyleChange()) | 218 if (!renderView->needsOverflowRecalcAfterStyleChange()) |
| 219 return; | 219 return; |
| 220 | 220 |
| 221 renderView->recalcOverflowAfterStyleChange(); | 221 renderView->recalcOverflowAfterStyleChange(); |
| 222 } | 222 } |
| 223 | 223 |
| 224 IntRect FrameView::contentsToScreen(const IntRect& rect) const | |
| 225 { | |
| 226 HostWindow* window = hostWindow(); | |
| 227 if (!window) | |
| 228 return IntRect(); | |
| 229 return window->rootViewToScreen(contentsToRootView(rect)); | |
| 230 } | |
| 231 | |
| 232 bool FrameView::scheduleAnimation() | 224 bool FrameView::scheduleAnimation() |
| 233 { | 225 { |
| 234 if (HostWindow* window = hostWindow()) { | 226 if (HostWindow* window = hostWindow()) { |
| 235 window->scheduleAnimation(); | 227 window->scheduleAnimation(); |
| 236 return true; | 228 return true; |
| 237 } | 229 } |
| 238 return false; | 230 return false; |
| 239 } | 231 } |
| 240 | 232 |
| 241 bool FrameView::isEnclosedInCompositingLayer() const | 233 bool FrameView::isEnclosedInCompositingLayer() const |
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 void FrameView::setLayoutSizeInternal(const IntSize& size) | 1161 void FrameView::setLayoutSizeInternal(const IntSize& size) |
| 1170 { | 1162 { |
| 1171 if (m_layoutSize == size) | 1163 if (m_layoutSize == size) |
| 1172 return; | 1164 return; |
| 1173 | 1165 |
| 1174 m_layoutSize = size; | 1166 m_layoutSize = size; |
| 1175 contentsResized(); | 1167 contentsResized(); |
| 1176 } | 1168 } |
| 1177 | 1169 |
| 1178 } // namespace blink | 1170 } // namespace blink |
| OLD | NEW |