Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutPart.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 Widget* widget = this->widget(); 335 Widget* widget = this->widget();
336 ASSERT(widget); 336 ASSERT(widget);
337 337
338 IntRect newFrame = roundedIntRect(frame); 338 IntRect newFrame = roundedIntRect(frame);
339 339
340 if (widget->frameRect() == newFrame) 340 if (widget->frameRect() == newFrame)
341 return false; 341 return false;
342 342
343 RefPtr<LayoutPart> protector(this); 343 RefPtr<LayoutPart> protector(this);
344 RefPtrWillBeRawPtr<Node> protectedNode(node()); 344 RawPtr<Node> protectedNode(node());
345 widget->setFrameRect(newFrame); 345 widget->setFrameRect(newFrame);
346 return widget->frameRect().size() != newFrame.size(); 346 return widget->frameRect().size() != newFrame.size();
347 } 347 }
348 348
349 void LayoutPart::invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& paint InvalidationState) 349 void LayoutPart::invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& paint InvalidationState)
350 { 350 {
351 if (widget() && widget()->isFrameView()) { 351 if (widget() && widget()->isFrameView()) {
352 FrameView* childFrameView = toFrameView(widget()); 352 FrameView* childFrameView = toFrameView(widget());
353 // |childFrameView| is in another document, which could be 353 // |childFrameView| is in another document, which could be
354 // missing its LayoutView. TODO(jchaffraix): Ideally we should 354 // missing its LayoutView. TODO(jchaffraix): Ideally we should
355 // not need this code. 355 // not need this code.
356 if (LayoutView* childLayoutView = childFrameView->layoutView()) { 356 if (LayoutView* childLayoutView = childFrameView->layoutView()) {
357 PaintInvalidationState childViewPaintInvalidationState(*childLayoutV iew, paintInvalidationState); 357 PaintInvalidationState childViewPaintInvalidationState(*childLayoutV iew, paintInvalidationState);
358 childFrameView->invalidateTreeIfNeeded(childViewPaintInvalidationSta te); 358 childFrameView->invalidateTreeIfNeeded(childViewPaintInvalidationSta te);
359 } 359 }
360 } 360 }
361 361
362 LayoutReplaced::invalidatePaintOfSubtreesIfNeeded(paintInvalidationState); 362 LayoutReplaced::invalidatePaintOfSubtreesIfNeeded(paintInvalidationState);
363 } 363 }
364 364
365 bool LayoutPart::isThrottledFrameView() const 365 bool LayoutPart::isThrottledFrameView() const
366 { 366 {
367 if (!widget() || !widget()->isFrameView()) 367 if (!widget() || !widget()->isFrameView())
368 return false; 368 return false;
369 const FrameView* frameView = toFrameView(widget()); 369 const FrameView* frameView = toFrameView(widget());
370 return frameView->shouldThrottleRendering(); 370 return frameView->shouldThrottleRendering();
371 } 371 }
372 372
373 } // namespace blink 373 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698