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

Side by Side Diff: Source/core/layout/LayoutBoxModelObject.h

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/layout/LayoutBoxModelObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 LayoutUnit borderLogicalLeft() const { return style()->isHorizontalWritingMo de() ? borderLeft() : borderTop(); } 153 LayoutUnit borderLogicalLeft() const { return style()->isHorizontalWritingMo de() ? borderLeft() : borderTop(); }
154 154
155 LayoutUnit paddingLogicalWidth() const { return paddingStart() + paddingEnd( ); } 155 LayoutUnit paddingLogicalWidth() const { return paddingStart() + paddingEnd( ); }
156 LayoutUnit paddingLogicalHeight() const { return paddingBefore() + paddingAf ter(); } 156 LayoutUnit paddingLogicalHeight() const { return paddingBefore() + paddingAf ter(); }
157 157
158 virtual LayoutRectOutsets marginBoxOutsets() const = 0; 158 virtual LayoutRectOutsets marginBoxOutsets() const = 0;
159 virtual LayoutUnit marginTop() const = 0; 159 virtual LayoutUnit marginTop() const = 0;
160 virtual LayoutUnit marginBottom() const = 0; 160 virtual LayoutUnit marginBottom() const = 0;
161 virtual LayoutUnit marginLeft() const = 0; 161 virtual LayoutUnit marginLeft() const = 0;
162 virtual LayoutUnit marginRight() const = 0; 162 virtual LayoutUnit marginRight() const = 0;
163 virtual LayoutUnit marginBefore(const LayoutStyle* otherStyle = 0) const = 0 ; 163 virtual LayoutUnit marginBefore(const ComputedStyle* otherStyle = 0) const = 0;
164 virtual LayoutUnit marginAfter(const LayoutStyle* otherStyle = 0) const = 0; 164 virtual LayoutUnit marginAfter(const ComputedStyle* otherStyle = 0) const = 0;
165 virtual LayoutUnit marginStart(const LayoutStyle* otherStyle = 0) const = 0; 165 virtual LayoutUnit marginStart(const ComputedStyle* otherStyle = 0) const = 0;
166 virtual LayoutUnit marginEnd(const LayoutStyle* otherStyle = 0) const = 0; 166 virtual LayoutUnit marginEnd(const ComputedStyle* otherStyle = 0) const = 0;
167 LayoutUnit marginHeight() const { return marginTop() + marginBottom(); } 167 LayoutUnit marginHeight() const { return marginTop() + marginBottom(); }
168 LayoutUnit marginWidth() const { return marginLeft() + marginRight(); } 168 LayoutUnit marginWidth() const { return marginLeft() + marginRight(); }
169 LayoutUnit marginLogicalHeight() const { return marginBefore() + marginAfter (); } 169 LayoutUnit marginLogicalHeight() const { return marginBefore() + marginAfter (); }
170 LayoutUnit marginLogicalWidth() const { return marginStart() + marginEnd(); } 170 LayoutUnit marginLogicalWidth() const { return marginStart() + marginEnd(); }
171 171
172 bool hasInlineDirectionBordersPaddingOrMargin() const { return hasInlineDire ctionBordersOrPadding() || marginStart() || marginEnd(); } 172 bool hasInlineDirectionBordersPaddingOrMargin() const { return hasInlineDire ctionBordersOrPadding() || marginStart() || marginEnd(); }
173 bool hasInlineDirectionBordersOrPadding() const { return borderStart() || bo rderEnd() || paddingStart() || paddingEnd(); } 173 bool hasInlineDirectionBordersOrPadding() const { return borderStart() || bo rderEnd() || paddingStart() || paddingEnd(); }
174 174
175 virtual LayoutUnit containingBlockLogicalWidthForContent() const; 175 virtual LayoutUnit containingBlockLogicalWidthForContent() const;
176 176
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn dentOffset); 216 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn dentOffset);
217 217
218 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; 218 bool hasAutoHeightOrContainingBlockWithAutoHeight() const;
219 LayoutBlock* containingBlockForAutoHeightDetection(Length logicalHeight) con st; 219 LayoutBlock* containingBlockForAutoHeightDetection(Length logicalHeight) con st;
220 220
221 void addChildFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addition alOffset) const; 221 void addChildFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addition alOffset) const;
222 222
223 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL ayer*, const LayoutPoint&, const LayoutRect&) const override; 223 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL ayer*, const LayoutPoint&, const LayoutRect&) const override;
224 224
225 void styleWillChange(StyleDifference, const LayoutStyle& newStyle) override; 225 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid e;
226 void styleDidChange(StyleDifference, const LayoutStyle* oldStyle) override; 226 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
227 227
228 public: 228 public:
229 // These functions are only used internally to manipulate the render tree st ructure via remove/insert/appendChildNode. 229 // These functions are only used internally to manipulate the render tree st ructure via remove/insert/appendChildNode.
230 // Since they are typically called only to move objects around within anonym ous blocks (which only have layers in 230 // Since they are typically called only to move objects around within anonym ous blocks (which only have layers in
231 // the case of column spans), the default for fullRemoveInsert is false rath er than true. 231 // the case of column spans), the default for fullRemoveInsert is false rath er than true.
232 void moveChildTo(LayoutBoxModelObject* toBoxModelObject, LayoutObject* child , LayoutObject* beforeChild, bool fullRemoveInsert = false); 232 void moveChildTo(LayoutBoxModelObject* toBoxModelObject, LayoutObject* child , LayoutObject* beforeChild, bool fullRemoveInsert = false);
233 void moveChildTo(LayoutBoxModelObject* toBoxModelObject, LayoutObject* child , bool fullRemoveInsert = false) 233 void moveChildTo(LayoutBoxModelObject* toBoxModelObject, LayoutObject* child , bool fullRemoveInsert = false)
234 { 234 {
235 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert); 235 moveChildTo(toBoxModelObject, child, 0, fullRemoveInsert);
236 } 236 }
(...skipping 28 matching lines...) Expand all
265 265
266 // Used to store state between styleWillChange and styleDidChange 266 // Used to store state between styleWillChange and styleDidChange
267 static bool s_wasFloating; 267 static bool s_wasFloating;
268 }; 268 };
269 269
270 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); 270 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject());
271 271
272 } // namespace blink 272 } // namespace blink
273 273
274 #endif // LayoutBoxModelObject_h 274 #endif // LayoutBoxModelObject_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/layout/LayoutBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698