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

Side by Side Diff: Source/core/layout/line/InlineBox.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/PointerEventsHitRules.cpp ('k') | Source/core/layout/line/InlineFlowBox.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, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 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 11 matching lines...) Expand all
22 22
23 #include "core/layout/HitTestLocation.h" 23 #include "core/layout/HitTestLocation.h"
24 #include "core/layout/LayoutBlockFlow.h" 24 #include "core/layout/LayoutBlockFlow.h"
25 #include "core/layout/LayoutObject.h" 25 #include "core/layout/LayoutObject.h"
26 #include "core/layout/line/InlineFlowBox.h" 26 #include "core/layout/line/InlineFlowBox.h"
27 #include "core/layout/line/RootInlineBox.h" 27 #include "core/layout/line/RootInlineBox.h"
28 #include "core/paint/BlockPainter.h" 28 #include "core/paint/BlockPainter.h"
29 #include "core/paint/PaintInfo.h" 29 #include "core/paint/PaintInfo.h"
30 #include "platform/fonts/FontMetrics.h" 30 #include "platform/fonts/FontMetrics.h"
31 #include "wtf/Partitions.h" 31 #include "wtf/Partitions.h"
32 #include "wtf/SizeAssertions.h"
32 33
33 #ifndef NDEBUG 34 #ifndef NDEBUG
34 #include <stdio.h> 35 #include <stdio.h>
35 #endif 36 #endif
36 37
37 namespace blink { 38 namespace blink {
38 39
39 struct SameSizeAsInlineBox { 40 ASSERT_SIZE(InlineBox, 36, 56);
40 virtual ~SameSizeAsInlineBox() { }
41 void* a[4];
42 LayoutPoint b;
43 LayoutUnit c;
44 uint32_t d : 32;
45 #if ENABLE(ASSERT)
46 bool f;
47 #endif
48 };
49
50 static_assert(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), "InlineBox shoul d stay small");
51 41
52 #if ENABLE(ASSERT) 42 #if ENABLE(ASSERT)
53 43
54 InlineBox::~InlineBox() 44 InlineBox::~InlineBox()
55 { 45 {
56 if (!m_hasBadParent && m_parent) 46 if (!m_hasBadParent && m_parent)
57 m_parent->setHasBadChildList(); 47 m_parent->setHasBadChildList();
58 } 48 }
59 49
60 #endif 50 #endif
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 385
396 void showLineTree(const blink::InlineBox* b) 386 void showLineTree(const blink::InlineBox* b)
397 { 387 {
398 if (b) 388 if (b)
399 b->showLineTreeForThis(); 389 b->showLineTreeForThis();
400 else 390 else
401 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n"); 391 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n");
402 } 392 }
403 393
404 #endif 394 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/PointerEventsHitRules.cpp ('k') | Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698