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

Side by Side Diff: Source/core/layout/LayoutBox.h

Issue 1307663002: Don't pass paintInvalidationContainer to LayoutBox::savePreviousBoxSizesIfNeeded() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | Source/core/layout/LayoutBox.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) 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 // These include tables, positioned objects, floats and flexible boxes. 807 // These include tables, positioned objects, floats and flexible boxes.
808 virtual void computePreferredLogicalWidths() { clearPreferredLogicalWidthsDi rty(); } 808 virtual void computePreferredLogicalWidths() { clearPreferredLogicalWidthsDi rty(); }
809 809
810 LayoutBoxRareData& ensureRareData() 810 LayoutBoxRareData& ensureRareData()
811 { 811 {
812 if (!m_rareData) 812 if (!m_rareData)
813 m_rareData = adoptPtr(new LayoutBoxRareData()); 813 m_rareData = adoptPtr(new LayoutBoxRareData());
814 return *m_rareData.get(); 814 return *m_rareData.get();
815 } 815 }
816 816
817 bool needToSavePreviousBoxSizes(const LayoutBoxModelObject& paintInvalidatio nContainer); 817 bool needToSavePreviousBoxSizes();
818 void savePreviousBoxSizesIfNeeded(const LayoutBoxModelObject& paintInvalidat ionContainer); 818 void savePreviousBoxSizesIfNeeded();
819 LayoutSize computePreviousBorderBoxSize(const LayoutSize& previousBoundsSize ) const; 819 LayoutSize computePreviousBorderBoxSize(const LayoutSize& previousBoundsSize ) const;
820 820
821 bool logicalHeightComputesAsNone(SizeType) const; 821 bool logicalHeightComputesAsNone(SizeType) const;
822 822
823 bool isBox() const = delete; // This will catch anyone doing an unnecessary check. 823 bool isBox() const = delete; // This will catch anyone doing an unnecessary check.
824 824
825 void frameRectChanged() 825 void frameRectChanged()
826 { 826 {
827 // The frame rect may change because of layout of other objects. 827 // The frame rect may change because of layout of other objects.
828 // Should check this object for paint invalidation. 828 // Should check this object for paint invalidation.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 930 if (UNLIKELY(inlineBoxWrapper() != nullptr))
931 deleteLineBoxWrapper(); 931 deleteLineBoxWrapper();
932 } 932 }
933 933
934 ensureRareData().m_inlineBoxWrapper = boxWrapper; 934 ensureRareData().m_inlineBoxWrapper = boxWrapper;
935 } 935 }
936 936
937 } // namespace blink 937 } // namespace blink
938 938
939 #endif // LayoutBox_h 939 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698