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

Side by Side Diff: sky/engine/core/rendering/RenderGeometryMapStep.h

Issue 686633002: First pass at removing position:fixed. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 33
34 namespace blink { 34 namespace blink {
35 35
36 class RenderObject; 36 class RenderObject;
37 37
38 // Stores data about how to map from one renderer to its container. 38 // Stores data about how to map from one renderer to its container.
39 struct RenderGeometryMapStep { 39 struct RenderGeometryMapStep {
40 RenderGeometryMapStep(const RenderGeometryMapStep& o) 40 RenderGeometryMapStep(const RenderGeometryMapStep& o)
41 : m_renderer(o.m_renderer) 41 : m_renderer(o.m_renderer)
42 , m_offset(o.m_offset) 42 , m_offset(o.m_offset)
43 , m_offsetForFixedPosition(o.m_offsetForFixedPosition)
44 , m_accumulatingTransform(o.m_accumulatingTransform) 43 , m_accumulatingTransform(o.m_accumulatingTransform)
45 , m_isNonUniform(o.m_isNonUniform) 44 , m_isNonUniform(o.m_isNonUniform)
46 , m_isFixedPosition(o.m_isFixedPosition)
47 , m_hasTransform(o.m_hasTransform) 45 , m_hasTransform(o.m_hasTransform)
48 { 46 {
49 ASSERT(!o.m_transform); 47 ASSERT(!o.m_transform);
50 } 48 }
51 RenderGeometryMapStep(const RenderObject* renderer, bool accumulatingTransfo rm, bool isNonUniform, bool isFixedPosition, bool hasTransform) 49 RenderGeometryMapStep(const RenderObject* renderer, bool accumulatingTransfo rm, bool isNonUniform, bool hasTransform)
52 : m_renderer(renderer) 50 : m_renderer(renderer)
53 , m_accumulatingTransform(accumulatingTransform) 51 , m_accumulatingTransform(accumulatingTransform)
54 , m_isNonUniform(isNonUniform) 52 , m_isNonUniform(isNonUniform)
55 , m_isFixedPosition(isFixedPosition)
56 , m_hasTransform(hasTransform) 53 , m_hasTransform(hasTransform)
57 { 54 {
58 } 55 }
59 const RenderObject* m_renderer; 56 const RenderObject* m_renderer;
60 LayoutSize m_offset; 57 LayoutSize m_offset;
61 OwnPtr<TransformationMatrix> m_transform; // Includes offset if non-null. 58 OwnPtr<TransformationMatrix> m_transform; // Includes offset if non-null.
62 LayoutSize m_offsetForFixedPosition;
63 bool m_accumulatingTransform; 59 bool m_accumulatingTransform;
64 bool m_isNonUniform; // Mapping depends on the input point, e.g. because of CSS columns. 60 bool m_isNonUniform; // Mapping depends on the input point, e.g. because of CSS columns.
65 bool m_isFixedPosition;
66 bool m_hasTransform; 61 bool m_hasTransform;
67 }; 62 };
68 63
69 } // namespace blink 64 } // namespace blink
70 65
71 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::RenderGeometryMapStep) ; 66 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::RenderGeometryMapStep) ;
72 67
73 #endif // RenderGeometryMapStep_h 68 #endif // RenderGeometryMapStep_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderGeometryMap.cpp ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698