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

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

Issue 1294233004: Subtree caching implementation in blink-core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: s/setSelfNeedsRepaint/setNeedsRepaint/ Created 5 years, 4 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 | Annotate | Revision Log
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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 RefPtrWillBeRawPtr<Node> protectedNode(node()); 329 RefPtrWillBeRawPtr<Node> protectedNode(node());
330 widget->setFrameRect(newFrame); 330 widget->setFrameRect(newFrame);
331 return widget->frameRect().size() != newFrame.size(); 331 return widget->frameRect().size() != newFrame.size();
332 } 332 }
333 333
334 void LayoutPart::invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& paint InvalidationState) 334 void LayoutPart::invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& paint InvalidationState)
335 { 335 {
336 if (widget() && widget()->isFrameView()) { 336 if (widget() && widget()->isFrameView()) {
337 FrameView* childFrameView = toFrameView(widget()); 337 FrameView* childFrameView = toFrameView(widget());
338 PaintInvalidationState childViewPaintInvalidationState(*childFrameView-> layoutView(), paintInvalidationState); 338 PaintInvalidationState childViewPaintInvalidationState(*childFrameView-> layoutView(), paintInvalidationState);
339 toFrameView(widget())->invalidateTreeIfNeeded(childViewPaintInvalidation State); 339 childFrameView->invalidateTreeIfNeeded(childViewPaintInvalidationState);
340 } 340 }
341 341
342 LayoutReplaced::invalidatePaintOfSubtreesIfNeeded(paintInvalidationState); 342 LayoutReplaced::invalidatePaintOfSubtreesIfNeeded(paintInvalidationState);
343 } 343 }
344 344
345 bool LayoutPart::clearRepaintFlagsOfSubtrees()
346 {
347 bool result = LayoutReplaced::clearRepaintFlagsOfSubtrees();
348 if (widget() && widget()->isFrameView())
349 result &= toFrameView(widget())->layoutView()->clearRepaintFlagsRecursiv ely();
350 return result;
345 } 351 }
352
353 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698