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

Side by Side Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp

Issue 1528323002: Include <algorithm> if you use functions from <algorithm>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split ui parts into a separate review Created 5 years 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) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 24 matching lines...) Expand all
35 #include "core/layout/api/LineLayoutInline.h" 35 #include "core/layout/api/LineLayoutInline.h"
36 #include "core/layout/api/LineLayoutListMarker.h" 36 #include "core/layout/api/LineLayoutListMarker.h"
37 #include "core/layout/api/LineLayoutRubyRun.h" 37 #include "core/layout/api/LineLayoutRubyRun.h"
38 #include "core/layout/line/GlyphOverflow.h" 38 #include "core/layout/line/GlyphOverflow.h"
39 #include "core/layout/line/InlineTextBox.h" 39 #include "core/layout/line/InlineTextBox.h"
40 #include "core/layout/line/RootInlineBox.h" 40 #include "core/layout/line/RootInlineBox.h"
41 #include "core/paint/BoxPainter.h" 41 #include "core/paint/BoxPainter.h"
42 #include "core/paint/InlineFlowBoxPainter.h" 42 #include "core/paint/InlineFlowBoxPainter.h"
43 #include "core/style/ShadowList.h" 43 #include "core/style/ShadowList.h"
44 #include "platform/fonts/Font.h" 44 #include "platform/fonts/Font.h"
45 45 #include <algorithm>
46 #include <math.h> 46 #include <math.h>
47 47
48 namespace blink { 48 namespace blink {
49 49
50 struct SameSizeAsInlineFlowBox : public InlineBox { 50 struct SameSizeAsInlineFlowBox : public InlineBox {
51 void* pointers[5]; 51 void* pointers[5];
52 uint32_t bitfields : 23; 52 uint32_t bitfields : 23;
53 }; 53 };
54 54
55 static_assert(sizeof(InlineFlowBox) == sizeof(SameSizeAsInlineFlowBox), "InlineF lowBox should stay small"); 55 static_assert(sizeof(InlineFlowBox) == sizeof(SameSizeAsInlineFlowBox), "InlineF lowBox should stay small");
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 ASSERT(child->prevOnLine() == prev); 1310 ASSERT(child->prevOnLine() == prev);
1311 prev = child; 1311 prev = child;
1312 } 1312 }
1313 ASSERT(prev == m_lastChild); 1313 ASSERT(prev == m_lastChild);
1314 #endif 1314 #endif
1315 } 1315 }
1316 1316
1317 #endif 1317 #endif
1318 1318
1319 } // namespace blink 1319 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698