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

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

Issue 1394193003: Invalidate background-attachment:fixed on scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename all SlowRepaint to BackgroundAttachmentFixed. rebaseline test. 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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 { 945 {
946 // The frame rect may change because of layout of other objects. 946 // The frame rect may change because of layout of other objects.
947 // Should check this object for paint invalidation. 947 // Should check this object for paint invalidation.
948 if (!needsLayout()) 948 if (!needsLayout())
949 setMayNeedPaintInvalidation(); 949 setMayNeedPaintInvalidation();
950 } 950 }
951 951
952 // Returns true if the box intersects the viewport visible to the user. 952 // Returns true if the box intersects the viewport visible to the user.
953 bool intersectsVisibleViewport(); 953 bool intersectsVisibleViewport();
954 954
955 void updateSlowRepaintStatusAfterStyleChange(); 955 void updateBackgroundAttachmentFixedStatusAfterStyleChange();
956 956
957 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent). 957 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent).
958 LayoutRect m_frameRect; 958 LayoutRect m_frameRect;
959 959
960 // Our intrinsic height, used for min-height: min-content etc. Maintained by 960 // Our intrinsic height, used for min-height: min-content etc. Maintained by
961 // updateLogicalHeight. This is logicalHeight() before it is clamped to 961 // updateLogicalHeight. This is logicalHeight() before it is clamped to
962 // min/max. 962 // min/max.
963 mutable LayoutUnit m_intrinsicContentLogicalHeight; 963 mutable LayoutUnit m_intrinsicContentLogicalHeight;
964 964
965 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const; 965 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 1054 if (UNLIKELY(inlineBoxWrapper() != nullptr))
1055 deleteLineBoxWrapper(); 1055 deleteLineBoxWrapper();
1056 } 1056 }
1057 1057
1058 ensureRareData().m_inlineBoxWrapper = boxWrapper; 1058 ensureRareData().m_inlineBoxWrapper = boxWrapper;
1059 } 1059 }
1060 1060
1061 } // namespace blink 1061 } // namespace blink
1062 1062
1063 #endif // LayoutBox_h 1063 #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