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

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

Issue 1234153003: Reland 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
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). 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).
837 LayoutRect m_frameRect; 839 LayoutRect m_frameRect;
838 840
839 // Our intrinsic height, used for min-height: min-content etc. Maintained by 841 // Our intrinsic height, used for min-height: min-content etc. Maintained by
840 // updateLogicalHeight. This is logicalHeight() before it is clamped to 842 // updateLogicalHeight. This is logicalHeight() before it is clamped to
841 // min/max. 843 // min/max.
842 mutable LayoutUnit m_intrinsicContentLogicalHeight; 844 mutable LayoutUnit m_intrinsicContentLogicalHeight;
843 845
844 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const; 846 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const;
845 847
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 930 if (UNLIKELY(inlineBoxWrapper() != nullptr))
929 deleteLineBoxWrapper(); 931 deleteLineBoxWrapper();
930 } 932 }
931 933
932 ensureRareData().m_inlineBoxWrapper = boxWrapper; 934 ensureRareData().m_inlineBoxWrapper = boxWrapper;
933 } 935 }
934 936
935 } // namespace blink 937 } // namespace blink
936 938
937 #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