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

Side by Side Diff: Source/core/layout/line/RootInlineBox.cpp

Issue 1317143005: [WIP] do something :-) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/layout/line/InlineTextBox.cpp ('k') | Source/core/style/ComputedStyle.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) 2003, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008 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 16 matching lines...) Expand all
27 #include "core/layout/LayoutInline.h" 27 #include "core/layout/LayoutInline.h"
28 #include "core/layout/LayoutView.h" 28 #include "core/layout/LayoutView.h"
29 #include "core/layout/VerticalPositionCache.h" 29 #include "core/layout/VerticalPositionCache.h"
30 #include "core/layout/api/LineLayoutItem.h" 30 #include "core/layout/api/LineLayoutItem.h"
31 #include "core/layout/line/EllipsisBox.h" 31 #include "core/layout/line/EllipsisBox.h"
32 #include "core/layout/line/GlyphOverflow.h" 32 #include "core/layout/line/GlyphOverflow.h"
33 #include "core/layout/line/InlineTextBox.h" 33 #include "core/layout/line/InlineTextBox.h"
34 #include "core/paint/PaintInfo.h" 34 #include "core/paint/PaintInfo.h"
35 #include "core/paint/RootInlineBoxPainter.h" 35 #include "core/paint/RootInlineBoxPainter.h"
36 #include "platform/text/BidiResolver.h" 36 #include "platform/text/BidiResolver.h"
37 #include "wtf/SizeAssertions.h"
37 #include "wtf/text/Unicode.h" 38 #include "wtf/text/Unicode.h"
38 39
39 namespace blink { 40 namespace blink {
40 41
41 struct SameSizeAsRootInlineBox : public InlineFlowBox { 42 ASSERT_SIZE(RootInlineBox, sizeof(InlineFlowBox) + 40, sizeof(InlineFlowBox) + 4 8);
42 unsigned unsignedVariable;
43 void* pointers[3];
44 LayoutUnit layoutVariables[6];
45 };
46
47 static_assert(sizeof(RootInlineBox) == sizeof(SameSizeAsRootInlineBox), "RootInl ineBox should stay small");
48 43
49 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap; 44 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap;
50 static EllipsisBoxMap* gEllipsisBoxMap = nullptr; 45 static EllipsisBoxMap* gEllipsisBoxMap = nullptr;
51 46
52 RootInlineBox::RootInlineBox(LayoutBlockFlow& block) 47 RootInlineBox::RootInlineBox(LayoutBlockFlow& block)
53 : InlineFlowBox(block) 48 : InlineFlowBox(block)
54 , m_lineBreakPos(0) 49 , m_lineBreakPos(0)
55 , m_lineBreakObj(nullptr) 50 , m_lineBreakObj(nullptr)
56 , m_lineTop(0) 51 , m_lineTop(0)
57 , m_lineBottom(0) 52 , m_lineBottom(0)
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 endBox = nullptr; 843 endBox = nullptr;
849 return nullptr; 844 return nullptr;
850 } 845 }
851 846
852 const char* RootInlineBox::boxName() const 847 const char* RootInlineBox::boxName() const
853 { 848 {
854 return "RootInlineBox"; 849 return "RootInlineBox";
855 } 850 }
856 851
857 } // namespace blink 852 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/line/InlineTextBox.cpp ('k') | Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698