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

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

Issue 2194913002: Ensure that we consistently check contains: paint for fixed position containment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 22 matching lines...) Expand all
33 #include <memory> 33 #include <memory>
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class LayoutObject; 37 class LayoutObject;
38 38
39 enum GeometryInfoFlag { 39 enum GeometryInfoFlag {
40 AccumulatingTransform = 1 << 0, 40 AccumulatingTransform = 1 << 0,
41 IsNonUniform = 1 << 1, // Mapping depends on the input point, e.g. because o f CSS columns. 41 IsNonUniform = 1 << 1, // Mapping depends on the input point, e.g. because o f CSS columns.
42 IsFixedPosition = 1 << 2, 42 IsFixedPosition = 1 << 2,
43 HasTransform = 1 << 3, 43 ContainsFixedPosition = 1 << 3,
44 }; 44 };
45 typedef unsigned GeometryInfoFlags; 45 typedef unsigned GeometryInfoFlags;
46 46
47 // Stores data about how to map from one layoutObject to its container. 47 // Stores data about how to map from one layoutObject to its container.
48 struct LayoutGeometryMapStep { 48 struct LayoutGeometryMapStep {
49 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 49 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
50 LayoutGeometryMapStep(const LayoutGeometryMapStep& o) 50 LayoutGeometryMapStep(const LayoutGeometryMapStep& o)
51 : m_layoutObject(o.m_layoutObject) 51 : m_layoutObject(o.m_layoutObject)
52 , m_offset(o.m_offset) 52 , m_offset(o.m_offset)
53 , m_offsetForFixedPosition(o.m_offsetForFixedPosition) 53 , m_offsetForFixedPosition(o.m_offsetForFixedPosition)
(...skipping 15 matching lines...) Expand all
69 LayoutSize m_offsetForFixedPosition; 69 LayoutSize m_offsetForFixedPosition;
70 LayoutSize m_offsetForStickyPosition; 70 LayoutSize m_offsetForStickyPosition;
71 GeometryInfoFlags m_flags; 71 GeometryInfoFlags m_flags;
72 }; 72 };
73 73
74 } // namespace blink 74 } // namespace blink
75 75
76 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::LayoutGeometryMapStep) ; 76 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::LayoutGeometryMapStep) ;
77 77
78 #endif // LayoutGeometryMapStep_h 78 #endif // LayoutGeometryMapStep_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698