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

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

Issue 350333003: Cascade declared property values instead of applying values on top of each other (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 , m_imageSet(useInitialValues) 62 , m_imageSet(useInitialValues)
63 , m_attachmentSet(useInitialValues) 63 , m_attachmentSet(useInitialValues)
64 , m_clipSet(useInitialValues) 64 , m_clipSet(useInitialValues)
65 , m_originSet(useInitialValues) 65 , m_originSet(useInitialValues)
66 , m_repeatXSet(useInitialValues) 66 , m_repeatXSet(useInitialValues)
67 , m_repeatYSet(useInitialValues) 67 , m_repeatYSet(useInitialValues)
68 , m_xPosSet(useInitialValues) 68 , m_xPosSet(useInitialValues)
69 , m_yPosSet(useInitialValues) 69 , m_yPosSet(useInitialValues)
70 , m_backgroundXOriginSet(false) 70 , m_backgroundXOriginSet(false)
71 , m_backgroundYOriginSet(false) 71 , m_backgroundYOriginSet(false)
72 , m_compositeSet(useInitialValues || type == MaskFillLayer) 72 , m_compositeSet(useInitialValues)
73 , m_blendModeSet(useInitialValues) 73 , m_blendModeSet(useInitialValues)
74 , m_maskSourceTypeSet(useInitialValues) 74 , m_maskSourceTypeSet(useInitialValues)
75 , m_type(type) 75 , m_type(type)
76 { 76 {
77 } 77 }
78 78
79 FillLayer::FillLayer(const FillLayer& o) 79 FillLayer::FillLayer(const FillLayer& o)
80 : m_next(o.m_next ? new FillLayer(*o.m_next) : 0) 80 : m_next(o.m_next ? new FillLayer(*o.m_next) : 0)
81 , m_image(o.m_image) 81 , m_image(o.m_image)
82 , m_xPosition(o.m_xPosition) 82 , m_xPosition(o.m_xPosition)
(...skipping 288 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 WebCore 380 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698