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

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

Issue 37223002: Align SameSizeAsFillLayer with FillLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comment Created 7 years, 1 month 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 | « no previous file | no next file » | 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 16 matching lines...) Expand all
27 struct SameSizeAsFillLayer { 27 struct SameSizeAsFillLayer {
28 FillLayer* m_next; 28 FillLayer* m_next;
29 29
30 RefPtr<StyleImage> m_image; 30 RefPtr<StyleImage> m_image;
31 31
32 Length m_xPosition; 32 Length m_xPosition;
33 Length m_yPosition; 33 Length m_yPosition;
34 34
35 LengthSize m_sizeLength; 35 LengthSize m_sizeLength;
36 36
37 unsigned m_bitfields: 32; 37 unsigned m_bitfields1;
38 unsigned m_bitfields2: 1; 38 unsigned m_bitfields2;
39 }; 39 };
40 40
41 COMPILE_ASSERT(sizeof(FillLayer) == sizeof(SameSizeAsFillLayer), FillLayer_shoul d_stay_small); 41 COMPILE_ASSERT(sizeof(FillLayer) == sizeof(SameSizeAsFillLayer), FillLayer_shoul d_stay_small);
42 42
43 FillLayer::FillLayer(EFillLayerType type, bool useInitialValues) 43 FillLayer::FillLayer(EFillLayerType type, bool useInitialValues)
44 : m_next(0) 44 : m_next(0)
45 , m_image(FillLayer::initialFillImage(type)) 45 , m_image(FillLayer::initialFillImage(type))
46 , m_xPosition(FillLayer::initialFillXPosition(type)) 46 , m_xPosition(FillLayer::initialFillXPosition(type))
47 , m_yPosition(FillLayer::initialFillYPosition(type)) 47 , m_yPosition(FillLayer::initialFillYPosition(type))
48 , m_sizeLength(FillLayer::initialFillSizeLength(type)) 48 , m_sizeLength(FillLayer::initialFillSizeLength(type))
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 369
370 return false; 370 return false;
371 } 371 }
372 372
373 bool FillLayer::hasRepeatXY() const 373 bool FillLayer::hasRepeatXY() const
374 { 374 {
375 return m_repeatX == RepeatFill && m_repeatY == RepeatFill; 375 return m_repeatX == RepeatFill && m_repeatY == RepeatFill;
376 } 376 }
377 377
378 } // namespace WebCore 378 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698