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

Side by Side Diff: Source/core/rendering/style/FillLayer.cpp

Issue 811843003: replace COMPILE_ASSERT with static_assert in core/rendering/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/core/rendering/break_lines.cpp ('k') | Source/core/rendering/style/RenderStyle.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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 22 matching lines...) Expand all
33 33
34 Length m_xPosition; 34 Length m_xPosition;
35 Length m_yPosition; 35 Length m_yPosition;
36 36
37 LengthSize m_sizeLength; 37 LengthSize m_sizeLength;
38 38
39 unsigned m_bitfields1; 39 unsigned m_bitfields1;
40 unsigned m_bitfields2; 40 unsigned m_bitfields2;
41 }; 41 };
42 42
43 COMPILE_ASSERT(sizeof(FillLayer) == sizeof(SameSizeAsFillLayer), FillLayer_shoul d_stay_small); 43 static_assert(sizeof(FillLayer) == sizeof(SameSizeAsFillLayer), "FillLayer shoul d stay small");
44 44
45 FillLayer::FillLayer(EFillLayerType type, bool useInitialValues) 45 FillLayer::FillLayer(EFillLayerType type, bool useInitialValues)
46 : m_next(0) 46 : m_next(0)
47 , m_image(FillLayer::initialFillImage(type)) 47 , m_image(FillLayer::initialFillImage(type))
48 , m_xPosition(FillLayer::initialFillXPosition(type)) 48 , m_xPosition(FillLayer::initialFillXPosition(type))
49 , m_yPosition(FillLayer::initialFillYPosition(type)) 49 , m_yPosition(FillLayer::initialFillYPosition(type))
50 , m_sizeLength(FillLayer::initialFillSizeLength(type)) 50 , m_sizeLength(FillLayer::initialFillSizeLength(type))
51 , m_attachment(FillLayer::initialFillAttachment(type)) 51 , m_attachment(FillLayer::initialFillAttachment(type))
52 , m_clip(FillLayer::initialFillClip(type)) 52 , m_clip(FillLayer::initialFillClip(type))
53 , m_origin(FillLayer::initialFillOrigin(type)) 53 , m_origin(FillLayer::initialFillOrigin(type))
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 return false; 372 return false;
373 } 373 }
374 374
375 bool FillLayer::hasRepeatXY() const 375 bool FillLayer::hasRepeatXY() const
376 { 376 {
377 return m_repeatX == RepeatFill && m_repeatY == RepeatFill; 377 return m_repeatX == RepeatFill && m_repeatY == RepeatFill;
378 } 378 }
379 379
380 } // namespace blink 380 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/break_lines.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698