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

Side by Side Diff: Source/core/rendering/exclusions/ExclusionShapeInsideInfo.h

Issue 14892005: [CSS Exclusions] ExclusionShape bounding box methods should return LayoutRects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: reverted LineSegment logicalLeft,Right type change Created 7 years, 7 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 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 return 0; 89 return 0;
90 ASSERT(m_segmentRanges.size() < m_segments.size()); 90 ASSERT(m_segmentRanges.size() < m_segments.size());
91 return &m_segments[m_segmentRanges.size()]; 91 return &m_segments[m_segmentRanges.size()];
92 } 92 }
93 bool adjustLogicalLineTop(float minSegmentWidth); 93 bool adjustLogicalLineTop(float minSegmentWidth);
94 94
95 void setNeedsLayout(bool value) { m_needsLayout = value; } 95 void setNeedsLayout(bool value) { m_needsLayout = value; }
96 bool needsLayout() { return m_needsLayout; } 96 bool needsLayout() { return m_needsLayout; }
97 97
98 protected: 98 protected:
99 virtual FloatRect computedShapeLogicalBoundingBox() const OVERRIDE { return computedShape()->shapePaddingLogicalBoundingBox(); } 99 virtual LayoutRect computedShapeLogicalBoundingBox() const OVERRIDE { return computedShape()->shapePaddingLogicalBoundingBox(); }
100 100
101 private: 101 private:
102 ExclusionShapeInsideInfo(const RenderBlock* renderer) 102 ExclusionShapeInsideInfo(const RenderBlock* renderer)
103 : ExclusionShapeInfo<RenderBlock, &RenderStyle::resolvedShapeInside, &Exclus ionShape::getIncludedIntervals> (renderer) 103 : ExclusionShapeInfo<RenderBlock, &RenderStyle::resolvedShapeInside, &Exclus ionShape::getIncludedIntervals> (renderer)
104 , m_needsLayout(false) 104 , m_needsLayout(false)
105 { } 105 { }
106 106
107 SegmentRangeList m_segmentRanges; 107 SegmentRangeList m_segmentRanges;
108 bool m_needsLayout; 108 bool m_needsLayout;
109 }; 109 };
110 110
111 } 111 }
112 #endif 112 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/exclusions/ExclusionShapeInfo.cpp ('k') | Source/core/rendering/exclusions/ExclusionShapeInsideInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698