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

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

Issue 849763002: Get rid of the full invalidation bool on FrameView. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // box-shadows, background-color and background-image, etc. 352 // box-shadows, background-color and background-image, etc.
353 enum BoxDecorationBackgroundState { 353 enum BoxDecorationBackgroundState {
354 NoBoxDecorationBackground, 354 NoBoxDecorationBackground,
355 HasBoxDecorationBackgroundObscurationStatusInvalid, 355 HasBoxDecorationBackgroundObscurationStatusInvalid,
356 HasBoxDecorationBackgroundKnownToBeObscured, 356 HasBoxDecorationBackgroundKnownToBeObscured,
357 HasBoxDecorationBackgroundMayBeVisible, 357 HasBoxDecorationBackgroundMayBeVisible,
358 }; 358 };
359 bool hasBoxDecorationBackground() const { return m_bitfields.boxDecorationBa ckgroundState() != NoBoxDecorationBackground; } 359 bool hasBoxDecorationBackground() const { return m_bitfields.boxDecorationBa ckgroundState() != NoBoxDecorationBackground; }
360 bool boxDecorationBackgroundIsKnownToBeObscured(); 360 bool boxDecorationBackgroundIsKnownToBeObscured();
361 bool canRenderBorderImage() const; 361 bool canRenderBorderImage() const;
362 bool mustInvalidateBackgroundOrBorderPaintOnWidthChange() const;
363 bool mustInvalidateBackgroundOrBorderPaintOnHeightChange() const;
364 bool mustInvalidateFillLayersPaintOnWidthChange(const FillLayer&) const;
365 bool mustInvalidateFillLayersPaintOnHeightChange(const FillLayer&) const;
366 bool hasBackground() const { return style()->hasBackground(); } 362 bool hasBackground() const { return style()->hasBackground(); }
367 bool hasEntirelyFixedBackground() const; 363 bool hasEntirelyFixedBackground() const;
368 364
369 bool needsLayoutBecauseOfChildren() const { return needsLayout() && !selfNee dsLayout() && !needsPositionedMovementLayout() && !needsSimplifiedNormalFlowLayo ut(); } 365 bool needsLayoutBecauseOfChildren() const { return needsLayout() && !selfNee dsLayout() && !needsPositionedMovementLayout() && !needsSimplifiedNormalFlowLayo ut(); }
370 366
371 bool needsLayout() const 367 bool needsLayout() const
372 { 368 {
373 return m_bitfields.selfNeedsLayout() || m_bitfields.normalChildNeedsLayo ut() || m_bitfields.posChildNeedsLayout() 369 return m_bitfields.selfNeedsLayout() || m_bitfields.normalChildNeedsLayo ut() || m_bitfields.posChildNeedsLayout()
374 || m_bitfields.needsSimplifiedNormalFlowLayout() || m_bitfields.need sPositionedMovementLayout(); 370 || m_bitfields.needsSimplifiedNormalFlowLayout() || m_bitfields.need sPositionedMovementLayout();
375 } 371 }
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 void showTree(const blink::RenderObject*); 1013 void showTree(const blink::RenderObject*);
1018 void showLineTree(const blink::RenderObject*); 1014 void showLineTree(const blink::RenderObject*);
1019 void showRenderTree(const blink::RenderObject* object1); 1015 void showRenderTree(const blink::RenderObject* object1);
1020 // We don't make object2 an optional parameter so that showRenderTree 1016 // We don't make object2 an optional parameter so that showRenderTree
1021 // can be called from gdb easily. 1017 // can be called from gdb easily.
1022 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1018 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1023 1019
1024 #endif 1020 #endif
1025 1021
1026 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ 1022 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698