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

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

Issue 1419823005: Invalidate background-attachment:fixed on scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 2 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
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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 { 828 {
829 // The frame rect may change because of layout of other objects. 829 // The frame rect may change because of layout of other objects.
830 // Should check this object for paint invalidation. 830 // Should check this object for paint invalidation.
831 if (!needsLayout()) 831 if (!needsLayout())
832 setMayNeedPaintInvalidation(); 832 setMayNeedPaintInvalidation();
833 } 833 }
834 834
835 // Returns true if the box intersects the viewport visible to the user. 835 // Returns true if the box intersects the viewport visible to the user.
836 bool intersectsVisibleViewport(); 836 bool intersectsVisibleViewport();
837 837
838 void updateSlowRepaintStatusAfterStyleChange(); 838 void updateBackgroundAttachmentFixedStatusAfterStyleChange();
839 839
840 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent). 840 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent).
841 LayoutRect m_frameRect; 841 LayoutRect m_frameRect;
842 842
843 // Our intrinsic height, used for min-height: min-content etc. Maintained by 843 // Our intrinsic height, used for min-height: min-content etc. Maintained by
844 // updateLogicalHeight. This is logicalHeight() before it is clamped to 844 // updateLogicalHeight. This is logicalHeight() before it is clamped to
845 // min/max. 845 // min/max.
846 mutable LayoutUnit m_intrinsicContentLogicalHeight; 846 mutable LayoutUnit m_intrinsicContentLogicalHeight;
847 847
848 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const; 848 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 937 if (UNLIKELY(inlineBoxWrapper() != nullptr))
938 deleteLineBoxWrapper(); 938 deleteLineBoxWrapper();
939 } 939 }
940 940
941 ensureRareData().m_inlineBoxWrapper = boxWrapper; 941 ensureRareData().m_inlineBoxWrapper = boxWrapper;
942 } 942 }
943 943
944 } // namespace blink 944 } // namespace blink
945 945
946 #endif // LayoutBox_h 946 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698