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

Side by Side Diff: sky/engine/core/rendering/RenderObject.h

Issue 730653002: Sky: update the HTMLIFrameElement's geometry during paint invalidation rather (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: esprehn Created 6 years, 1 month 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 // If |paintInvalidationContainer| is 0, invalidate paints via the view. 694 // If |paintInvalidationContainer| is 0, invalidate paints via the view.
695 // FIXME: |paintInvalidationContainer| should never be 0. See crbug.com/3636 99. 695 // FIXME: |paintInvalidationContainer| should never be 0. See crbug.com/3636 99.
696 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali dationContainer, const LayoutRect&, InvalidationReason) const; 696 void invalidatePaintUsingContainer(const RenderLayerModelObject* paintInvali dationContainer, const LayoutRect&, InvalidationReason) const;
697 697
698 // Invalidate the paint of a specific subrectangle within a given object. Th e rect |r| is in the object's coordinate space. 698 // Invalidate the paint of a specific subrectangle within a given object. Th e rect |r| is in the object's coordinate space.
699 void invalidatePaintRectangle(const LayoutRect&) const; 699 void invalidatePaintRectangle(const LayoutRect&) const;
700 700
701 InvalidationReason invalidatePaintIfNeeded(const RenderLayerModelObject& pai ntInvalidationContainer, 701 InvalidationReason invalidatePaintIfNeeded(const RenderLayerModelObject& pai ntInvalidationContainer,
702 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, const PaintInvalidationState&); 702 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, const PaintInvalidationState&);
703 703
704 // Invalidates the bounds of a widget that is drawn separately from the
705 // paint step.
706 virtual void invalidateWidgetBounds() { }
707
704 // Walk the tree after layout issuing paint invalidations for renderers that have changed or moved, updating bounds that have changed, and clearing paint in validation state. 708 // Walk the tree after layout issuing paint invalidations for renderers that have changed or moved, updating bounds that have changed, and clearing paint in validation state.
705 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&); 709 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&);
706 710
707 virtual void invalidatePaintForOverflow(); 711 virtual void invalidatePaintForOverflow();
708 void invalidatePaintForOverflowIfNeeded(); 712 void invalidatePaintForOverflowIfNeeded();
709 713
710 bool checkForPaintInvalidation() const; 714 bool checkForPaintInvalidation() const;
711 715
712 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 716 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
713 // coordinate space. This method deals with outlines and overflow. 717 // coordinate space. This method deals with outlines and overflow.
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 void showTree(const blink::RenderObject*); 1275 void showTree(const blink::RenderObject*);
1272 void showLineTree(const blink::RenderObject*); 1276 void showLineTree(const blink::RenderObject*);
1273 void showRenderTree(const blink::RenderObject* object1); 1277 void showRenderTree(const blink::RenderObject* object1);
1274 // We don't make object2 an optional parameter so that showRenderTree 1278 // We don't make object2 an optional parameter so that showRenderTree
1275 // can be called from gdb easily. 1279 // can be called from gdb easily.
1276 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1280 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1277 1281
1278 #endif 1282 #endif
1279 1283
1280 #endif // RenderObject_h 1284 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698