| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 * | 23 * |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "sky/engine/config.h" | |
| 27 #include "sky/engine/core/rendering/RenderBox.h" | 26 #include "sky/engine/core/rendering/RenderBox.h" |
| 28 | 27 |
| 29 #include <math.h> | 28 #include <math.h> |
| 30 #include <algorithm> | 29 #include <algorithm> |
| 31 #include "sky/engine/core/dom/Document.h" | 30 #include "sky/engine/core/dom/Document.h" |
| 32 #include "sky/engine/core/editing/htmlediting.h" | 31 #include "sky/engine/core/editing/htmlediting.h" |
| 33 #include "sky/engine/core/frame/FrameHost.h" | 32 #include "sky/engine/core/frame/FrameHost.h" |
| 34 #include "sky/engine/core/frame/FrameView.h" | 33 #include "sky/engine/core/frame/FrameView.h" |
| 35 #include "sky/engine/core/frame/LocalFrame.h" | 34 #include "sky/engine/core/frame/LocalFrame.h" |
| 36 #include "sky/engine/core/frame/Settings.h" | 35 #include "sky/engine/core/frame/Settings.h" |
| (...skipping 3025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3062 | 3061 |
| 3063 RenderBox::BoxDecorationData::BoxDecorationData(const RenderStyle& style) | 3062 RenderBox::BoxDecorationData::BoxDecorationData(const RenderStyle& style) |
| 3064 { | 3063 { |
| 3065 backgroundColor = style.colorIncludingFallback(CSSPropertyBackgroundColor); | 3064 backgroundColor = style.colorIncludingFallback(CSSPropertyBackgroundColor); |
| 3066 hasBackground = backgroundColor.alpha() || style.hasBackgroundImage(); | 3065 hasBackground = backgroundColor.alpha() || style.hasBackgroundImage(); |
| 3067 ASSERT(hasBackground == style.hasBackground()); | 3066 ASSERT(hasBackground == style.hasBackground()); |
| 3068 hasBorder = style.hasBorder(); | 3067 hasBorder = style.hasBorder(); |
| 3069 } | 3068 } |
| 3070 | 3069 |
| 3071 } // namespace blink | 3070 } // namespace blink |
| OLD | NEW |