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: Source/core/rendering/RenderBox.h

Issue 398343003: Use unified invalidation path for repaint-only style changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderBox.cpp » ('j') | Source/core/rendering/RenderBox.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 710
711 RenderBoxRareData& ensureRareData() 711 RenderBoxRareData& ensureRareData()
712 { 712 {
713 if (!m_rareData) 713 if (!m_rareData)
714 m_rareData = adoptPtr(new RenderBoxRareData()); 714 m_rareData = adoptPtr(new RenderBoxRareData());
715 return *m_rareData.get(); 715 return *m_rareData.get();
716 } 716 }
717 717
718 void savePreviousBorderBoxSizeIfNeeded(); 718 void savePreviousBorderBoxSizeIfNeeded();
719 719
720 void invalidatePaintIfNeeded(const PaintInvalidationState&, const RenderLaye rModelObject& newPaintInvalidationContainer);
721
720 private: 722 private:
721 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent). 723 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent).
722 LayoutRect m_frameRect; 724 LayoutRect m_frameRect;
723 725
724 // Our intrinsic height, used for min-height: min-content etc. Maintained by 726 // Our intrinsic height, used for min-height: min-content etc. Maintained by
725 // updateLogicalHeight. This is logicalHeight() before it is clamped to 727 // updateLogicalHeight. This is logicalHeight() before it is clamped to
726 // min/max. 728 // min/max.
727 mutable LayoutUnit m_intrinsicContentLogicalHeight; 729 mutable LayoutUnit m_intrinsicContentLogicalHeight;
728 730
729 protected: 731 protected:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 if (UNLIKELY(inlineBoxWrapper() != 0)) 782 if (UNLIKELY(inlineBoxWrapper() != 0))
781 deleteLineBoxWrapper(); 783 deleteLineBoxWrapper();
782 } 784 }
783 785
784 ensureRareData().m_inlineBoxWrapper = boxWrapper; 786 ensureRareData().m_inlineBoxWrapper = boxWrapper;
785 } 787 }
786 788
787 } // namespace WebCore 789 } // namespace WebCore
788 790
789 #endif // RenderBox_h 791 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderBox.cpp » ('j') | Source/core/rendering/RenderBox.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698