| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
| 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 frameView->setNeedsLayout(); | 330 frameView->setNeedsLayout(); |
| 331 | 331 |
| 332 updateWidgetGeometryInternal(); | 332 updateWidgetGeometryInternal(); |
| 333 | 333 |
| 334 // If view needs layout, either because bounds have changed or possibly | 334 // If view needs layout, either because bounds have changed or possibly |
| 335 // indicating content size is wrong, we have to do a layout to set the right | 335 // indicating content size is wrong, we have to do a layout to set the right |
| 336 // FrameViewBase size. | 336 // FrameViewBase size. |
| 337 if (frameView && frameView->needsLayout() && frameView->frame().page()) | 337 if (frameView && frameView->needsLayout() && frameView->frame().page()) |
| 338 frameView->layout(); | 338 frameView->layout(); |
| 339 | 339 |
| 340 frameViewBase->widgetGeometryMayHaveChanged(); | 340 frameViewBase->geometryMayHaveChanged(); |
| 341 } | 341 } |
| 342 | 342 |
| 343 void LayoutPart::updateWidgetGeometryInternal() { | 343 void LayoutPart::updateWidgetGeometryInternal() { |
| 344 FrameViewBase* frameViewBase = this->widget(); | 344 FrameViewBase* frameViewBase = this->widget(); |
| 345 DCHECK(frameViewBase); | 345 DCHECK(frameViewBase); |
| 346 | 346 |
| 347 // Ignore transform here, as we only care about the sub-pixel accumulation. | 347 // Ignore transform here, as we only care about the sub-pixel accumulation. |
| 348 // TODO(trchen): What about multicol? Need a LayoutBox function to query | 348 // TODO(trchen): What about multicol? Need a LayoutBox function to query |
| 349 // sub-pixel accumulation. | 349 // sub-pixel accumulation. |
| 350 LayoutPoint absoluteLocation(localToAbsolute(FloatPoint())); | 350 LayoutPoint absoluteLocation(localToAbsolute(FloatPoint())); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 } | 391 } |
| 392 | 392 |
| 393 bool LayoutPart::isThrottledFrameView() const { | 393 bool LayoutPart::isThrottledFrameView() const { |
| 394 if (!widget() || !widget()->isFrameView()) | 394 if (!widget() || !widget()->isFrameView()) |
| 395 return false; | 395 return false; |
| 396 const FrameView* frameView = toFrameView(widget()); | 396 const FrameView* frameView = toFrameView(widget()); |
| 397 return frameView->shouldThrottleRendering(); | 397 return frameView->shouldThrottleRendering(); |
| 398 } | 398 } |
| 399 | 399 |
| 400 } // namespace blink | 400 } // namespace blink |
| OLD | NEW |