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

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

Issue 1508223005: Client side display item cache flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Try performance 2 Created 4 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) 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 25 matching lines...) Expand all
36 namespace blink { 36 namespace blink {
37 37
38 class LayoutObject; 38 class LayoutObject;
39 39
40 struct SameSizeAsInlineBox { 40 struct SameSizeAsInlineBox {
41 virtual ~SameSizeAsInlineBox() { } 41 virtual ~SameSizeAsInlineBox() { }
42 void* a[4]; 42 void* a[4];
43 LayoutPoint b; 43 LayoutPoint b;
44 LayoutUnit c; 44 LayoutUnit c;
45 uint32_t d : 32; 45 uint32_t d : 32;
46 // unsigned e;
chrishtr 2016/04/28 00:53:36 ?
46 #if ENABLE(ASSERT) 47 #if ENABLE(ASSERT)
47 bool f; 48 bool f;
48 #endif 49 #endif
49 }; 50 };
50 51
51 static_assert(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), "InlineBox shoul d stay small"); 52 static_assert(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), "InlineBox shoul d stay small");
52 53
53 #if ENABLE(ASSERT) 54 #if ENABLE(ASSERT)
54 55
55 InlineBox::~InlineBox() 56 InlineBox::~InlineBox()
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 405
405 void showLineTree(const blink::InlineBox* b) 406 void showLineTree(const blink::InlineBox* b)
406 { 407 {
407 if (b) 408 if (b)
408 b->showLineTreeForThis(); 409 b->showLineTreeForThis();
409 else 410 else
410 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n"); 411 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n");
411 } 412 }
412 413
413 #endif 414 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698