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

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

Issue 1224083019: Revert of Fix slow repaint object registration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
829 if (!needsLayout()) 829 if (!needsLayout())
830 setMayNeedPaintInvalidation(); 830 setMayNeedPaintInvalidation();
831 } 831 }
832 832
833 // Returns true if the box intersects the viewport visible to the user. 833 // Returns true if the box intersects the viewport visible to the user.
834 bool intersectsVisibleViewport(); 834 bool intersectsVisibleViewport();
835 835
836 void updateSlowRepaintStatusAfterStyleChange();
837
838 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent). 836 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent).
839 LayoutRect m_frameRect; 837 LayoutRect m_frameRect;
840 838
841 // Our intrinsic height, used for min-height: min-content etc. Maintained by 839 // Our intrinsic height, used for min-height: min-content etc. Maintained by
842 // updateLogicalHeight. This is logicalHeight() before it is clamped to 840 // updateLogicalHeight. This is logicalHeight() before it is clamped to
843 // min/max. 841 // min/max.
844 mutable LayoutUnit m_intrinsicContentLogicalHeight; 842 mutable LayoutUnit m_intrinsicContentLogicalHeight;
845 843
846 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const; 844 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const;
847 845
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 928 if (UNLIKELY(inlineBoxWrapper() != nullptr))
931 deleteLineBoxWrapper(); 929 deleteLineBoxWrapper();
932 } 930 }
933 931
934 ensureRareData().m_inlineBoxWrapper = boxWrapper; 932 ensureRareData().m_inlineBoxWrapper = boxWrapper;
935 } 933 }
936 934
937 } // namespace blink 935 } // namespace blink
938 936
939 #endif // LayoutBox_h 937 #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