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

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

Issue 2809363002: Rewrite references to "wtf/" to "platform/wtf/" in core/layout. (Closed)
Patch Set: Created 3 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
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"
40 #include "platform/wtf/AutoReset.h"
39 #include "public/platform/Platform.h" 41 #include "public/platform/Platform.h"
40 #include "wtf/AutoReset.h"
41 #include <memory>
42 42
43 namespace blink { 43 namespace blink {
44 44
45 CSSBoxType ReferenceBox(const ShapeValue& shape_value) { 45 CSSBoxType ReferenceBox(const ShapeValue& shape_value) {
46 if (shape_value.CssBox() == kBoxMissing) 46 if (shape_value.CssBox() == kBoxMissing)
47 return kMarginBox; 47 return kMarginBox;
48 return shape_value.CssBox(); 48 return shape_value.CssBox();
49 } 49 }
50 50
51 void ShapeOutsideInfo::SetReferenceBoxLogicalSize( 51 void ShapeOutsideInfo::SetReferenceBoxLogicalSize(
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 return result; 444 return result;
445 } 445 }
446 446
447 FloatSize ShapeOutsideInfo::ShapeToLayoutObjectSize(FloatSize size) const { 447 FloatSize ShapeOutsideInfo::ShapeToLayoutObjectSize(FloatSize size) const {
448 if (!layout_box_.Style()->IsHorizontalWritingMode()) 448 if (!layout_box_.Style()->IsHorizontalWritingMode())
449 return size.TransposedSize(); 449 return size.TransposedSize();
450 return size; 450 return size;
451 } 451 }
452 452
453 } // namespace blink 453 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698