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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 LayoutReplaced::styleDidChange(diff, oldStyle); | 235 LayoutReplaced::styleDidChange(diff, oldStyle); |
236 Widget* widget = this->widget(); | 236 Widget* widget = this->widget(); |
237 | 237 |
238 if (!widget) | 238 if (!widget) |
239 return; | 239 return; |
240 | 240 |
241 // If the iframe has custom scrollbars, recalculate their style. | 241 // If the iframe has custom scrollbars, recalculate their style. |
242 if (widget && widget->isFrameView()) | 242 if (widget && widget->isFrameView()) |
243 toFrameView(widget)->recalculateCustomScrollbarStyle(); | 243 toFrameView(widget)->recalculateCustomScrollbarStyle(); |
244 | 244 |
245 if (style()->visibility() != EVisibility::Visible) { | 245 if (style()->visibility() != EVisibility::kVisible) { |
246 widget->hide(); | 246 widget->hide(); |
247 } else { | 247 } else { |
248 widget->show(); | 248 widget->show(); |
249 } | 249 } |
250 } | 250 } |
251 | 251 |
252 void LayoutPart::layout() { | 252 void LayoutPart::layout() { |
253 ASSERT(needsLayout()); | 253 ASSERT(needsLayout()); |
254 LayoutAnalyzer::Scope analyzer(*this); | 254 LayoutAnalyzer::Scope analyzer(*this); |
255 clearNeedsLayout(); | 255 clearNeedsLayout(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 Widget* widget = this->widget(); | 289 Widget* widget = this->widget(); |
290 if (!widget) | 290 if (!widget) |
291 return; | 291 return; |
292 | 292 |
293 if (!style()) | 293 if (!style()) |
294 return; | 294 return; |
295 | 295 |
296 if (!needsLayout()) | 296 if (!needsLayout()) |
297 updateWidgetGeometryInternal(); | 297 updateWidgetGeometryInternal(); |
298 | 298 |
299 if (style()->visibility() != EVisibility::Visible) { | 299 if (style()->visibility() != EVisibility::kVisible) { |
300 widget->hide(); | 300 widget->hide(); |
301 } else { | 301 } else { |
302 widget->show(); | 302 widget->show(); |
303 // FIXME: Why do we issue a full paint invalidation in this case, but not | 303 // FIXME: Why do we issue a full paint invalidation in this case, but not |
304 // the other? | 304 // the other? |
305 setShouldDoFullPaintInvalidation(); | 305 setShouldDoFullPaintInvalidation(); |
306 } | 306 } |
307 } | 307 } |
308 | 308 |
309 void LayoutPart::updateWidgetGeometry() { | 309 void LayoutPart::updateWidgetGeometry() { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 } | 389 } |
390 | 390 |
391 bool LayoutPart::isThrottledFrameView() const { | 391 bool LayoutPart::isThrottledFrameView() const { |
392 if (!widget() || !widget()->isFrameView()) | 392 if (!widget() || !widget()->isFrameView()) |
393 return false; | 393 return false; |
394 const FrameView* frameView = toFrameView(widget()); | 394 const FrameView* frameView = toFrameView(widget()); |
395 return frameView->shouldThrottleRendering(); | 395 return frameView->shouldThrottleRendering(); |
396 } | 396 } |
397 | 397 |
398 } // namespace blink | 398 } // namespace blink |
OLD | NEW |