| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 LayoutReplaced::styleDidChange(diff, oldStyle); | 222 LayoutReplaced::styleDidChange(diff, oldStyle); |
| 223 Widget* widget = this->widget(); | 223 Widget* widget = this->widget(); |
| 224 | 224 |
| 225 if (!widget) | 225 if (!widget) |
| 226 return; | 226 return; |
| 227 | 227 |
| 228 // If the iframe has custom scrollbars, recalculate their style. | 228 // If the iframe has custom scrollbars, recalculate their style. |
| 229 if (widget && widget->isFrameView()) | 229 if (widget && widget->isFrameView()) |
| 230 toFrameView(widget)->recalculateCustomScrollbarStyle(); | 230 toFrameView(widget)->recalculateCustomScrollbarStyle(); |
| 231 | 231 |
| 232 if (style()->visibility() != VISIBLE) { | 232 if (style()->visibility() != EVisibility::Visible) { |
| 233 widget->hide(); | 233 widget->hide(); |
| 234 } else { | 234 } else { |
| 235 widget->show(); | 235 widget->show(); |
| 236 } | 236 } |
| 237 } | 237 } |
| 238 | 238 |
| 239 void LayoutPart::layout() | 239 void LayoutPart::layout() |
| 240 { | 240 { |
| 241 ASSERT(needsLayout()); | 241 ASSERT(needsLayout()); |
| 242 LayoutAnalyzer::Scope analyzer(*this); | 242 LayoutAnalyzer::Scope analyzer(*this); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 Widget* widget = this->widget(); | 278 Widget* widget = this->widget(); |
| 279 if (!widget) | 279 if (!widget) |
| 280 return; | 280 return; |
| 281 | 281 |
| 282 if (!style()) | 282 if (!style()) |
| 283 return; | 283 return; |
| 284 | 284 |
| 285 if (!needsLayout()) | 285 if (!needsLayout()) |
| 286 updateWidgetGeometryInternal(); | 286 updateWidgetGeometryInternal(); |
| 287 | 287 |
| 288 if (style()->visibility() != VISIBLE) { | 288 if (style()->visibility() != EVisibility::Visible) { |
| 289 widget->hide(); | 289 widget->hide(); |
| 290 } else { | 290 } else { |
| 291 widget->show(); | 291 widget->show(); |
| 292 // FIXME: Why do we issue a full paint invalidation in this case, but no
t the other? | 292 // FIXME: Why do we issue a full paint invalidation in this case, but no
t the other? |
| 293 setShouldDoFullPaintInvalidation(); | 293 setShouldDoFullPaintInvalidation(); |
| 294 } | 294 } |
| 295 } | 295 } |
| 296 | 296 |
| 297 void LayoutPart::updateWidgetGeometry() | 297 void LayoutPart::updateWidgetGeometry() |
| 298 { | 298 { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 bool LayoutPart::isThrottledFrameView() const | 359 bool LayoutPart::isThrottledFrameView() const |
| 360 { | 360 { |
| 361 if (!widget() || !widget()->isFrameView()) | 361 if (!widget() || !widget()->isFrameView()) |
| 362 return false; | 362 return false; |
| 363 const FrameView* frameView = toFrameView(widget()); | 363 const FrameView* frameView = toFrameView(widget()); |
| 364 return frameView->shouldThrottleRendering(); | 364 return frameView->shouldThrottleRendering(); |
| 365 } | 365 } |
| 366 | 366 |
| 367 } // namespace blink | 367 } // namespace blink |
| OLD | NEW |