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

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

Issue 2014483003: Rename OwnPtr::clear() to reset() in core/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 void addLayoutOverflow(const LayoutRect&); 402 void addLayoutOverflow(const LayoutRect&);
403 void addSelfVisualOverflow(const LayoutRect&); 403 void addSelfVisualOverflow(const LayoutRect&);
404 void addContentsVisualOverflow(const LayoutRect&); 404 void addContentsVisualOverflow(const LayoutRect&);
405 405
406 void addVisualEffectOverflow(); 406 void addVisualEffectOverflow();
407 LayoutRectOutsets computeVisualEffectOverflowOutsets() const; 407 LayoutRectOutsets computeVisualEffectOverflowOutsets() const;
408 void addOverflowFromChild(LayoutBox* child) { addOverflowFromChild(child, ch ild->locationOffset()); } 408 void addOverflowFromChild(LayoutBox* child) { addOverflowFromChild(child, ch ild->locationOffset()); }
409 void addOverflowFromChild(LayoutBox* child, const LayoutSize& delta); 409 void addOverflowFromChild(LayoutBox* child, const LayoutSize& delta);
410 void clearLayoutOverflow(); 410 void clearLayoutOverflow();
411 void clearAllOverflows() { m_overflow.clear(); } 411 void clearAllOverflows() { m_overflow.reset(); }
412 412
413 void updateLayerTransformAfterLayout(); 413 void updateLayerTransformAfterLayout();
414 414
415 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad dingRight(); } 415 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad dingRight(); }
416 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa ddingBottom(); } 416 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa ddingBottom(); }
417 LayoutSize contentSize() const { return LayoutSize(contentWidth(), contentHe ight()); } 417 LayoutSize contentSize() const { return LayoutSize(contentWidth(), contentHe ight()); }
418 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting Mode() ? contentWidth() : contentHeight(); } 418 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting Mode() ? contentWidth() : contentHeight(); }
419 LayoutUnit contentLogicalHeight() const { return style()->isHorizontalWritin gMode() ? contentHeight() : contentWidth(); } 419 LayoutUnit contentLogicalHeight() const { return style()->isHorizontalWritin gMode() ? contentHeight() : contentWidth(); }
420 420
421 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin es (LayoutFlow) 421 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin es (LayoutFlow)
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 || breakValue == BreakLeft 1213 || breakValue == BreakLeft
1214 || breakValue == BreakPage 1214 || breakValue == BreakPage
1215 || breakValue == BreakRecto 1215 || breakValue == BreakRecto
1216 || breakValue == BreakRight 1216 || breakValue == BreakRight
1217 || breakValue == BreakVerso; 1217 || breakValue == BreakVerso;
1218 } 1218 }
1219 1219
1220 } // namespace blink 1220 } // namespace blink
1221 1221
1222 #endif // LayoutBox_h 1222 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698