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

Side by Side Diff: third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 11 matching lines...) Expand all
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE. 27 * SUCH DAMAGE.
28 */ 28 */
29 29
30 #include "core/layout/shapes/ShapeOutsideInfo.h" 30 #include "core/layout/shapes/ShapeOutsideInfo.h"
31 31
32 #include <memory>
32 #include "core/inspector/ConsoleMessage.h" 33 #include "core/inspector/ConsoleMessage.h"
33 #include "core/layout/FloatingObjects.h" 34 #include "core/layout/FloatingObjects.h"
34 #include "core/layout/LayoutBlockFlow.h" 35 #include "core/layout/LayoutBlockFlow.h"
35 #include "core/layout/LayoutBox.h" 36 #include "core/layout/LayoutBox.h"
36 #include "core/layout/LayoutImage.h" 37 #include "core/layout/LayoutImage.h"
37 #include "core/layout/api/LineLayoutBlockFlow.h" 38 #include "core/layout/api/LineLayoutBlockFlow.h"
38 #include "platform/LengthFunctions.h" 39 #include "platform/LengthFunctions.h"
39 #include "public/platform/Platform.h" 40 #include "public/platform/Platform.h"
40 #include "wtf/AutoReset.h" 41 #include "wtf/AutoReset.h"
41 #include <memory>
42 42
43 namespace blink { 43 namespace blink {
44 44
45 CSSBoxType referenceBox(const ShapeValue& shapeValue) { 45 CSSBoxType referenceBox(const ShapeValue& shapeValue) {
46 if (shapeValue.cssBox() == BoxMissing) 46 if (shapeValue.cssBox() == BoxMissing)
47 return MarginBox; 47 return MarginBox;
48 return shapeValue.cssBox(); 48 return shapeValue.cssBox();
49 } 49 }
50 50
51 void ShapeOutsideInfo::setReferenceBoxLogicalSize( 51 void ShapeOutsideInfo::setReferenceBoxLogicalSize(
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 return result; 434 return result;
435 } 435 }
436 436
437 FloatSize ShapeOutsideInfo::shapeToLayoutObjectSize(FloatSize size) const { 437 FloatSize ShapeOutsideInfo::shapeToLayoutObjectSize(FloatSize size) const {
438 if (!m_layoutBox.style()->isHorizontalWritingMode()) 438 if (!m_layoutBox.style()->isHorizontalWritingMode())
439 return size.transposedSize(); 439 return size.transposedSize();
440 return size; 440 return size;
441 } 441 }
442 442
443 } // namespace blink 443 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698