OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 using namespace HTMLNames; | 46 using namespace HTMLNames; |
47 | 47 |
48 static const float replacementTextRoundedRectHeight = 18; | 48 static const float replacementTextRoundedRectHeight = 18; |
49 static const float replacementTextRoundedRectLeftRightTextMargin = 6; | 49 static const float replacementTextRoundedRectLeftRightTextMargin = 6; |
50 static const float replacementTextRoundedRectOpacity = 0.20f; | 50 static const float replacementTextRoundedRectOpacity = 0.20f; |
51 static const float replacementTextRoundedRectRadius = 5; | 51 static const float replacementTextRoundedRectRadius = 5; |
52 static const float replacementTextTextOpacity = 0.55f; | 52 static const float replacementTextTextOpacity = 0.55f; |
53 | 53 |
54 static const Color& replacementTextRoundedRectPressedColor() | |
55 { | |
56 static const Color lightGray(205, 205, 205); | |
57 return lightGray; | |
58 } | |
59 | |
60 RenderEmbeddedObject::RenderEmbeddedObject(Element* element) | 54 RenderEmbeddedObject::RenderEmbeddedObject(Element* element) |
61 : RenderPart(element) | 55 : RenderPart(element) |
62 , m_hasFallbackContent(false) | 56 , m_hasFallbackContent(false) |
63 , m_showsUnavailablePluginIndicator(false) | 57 , m_showsUnavailablePluginIndicator(false) |
64 { | 58 { |
65 view()->frameView()->setIsVisuallyNonEmpty(); | 59 view()->frameView()->setIsVisuallyNonEmpty(); |
66 } | 60 } |
67 | 61 |
68 RenderEmbeddedObject::~RenderEmbeddedObject() | 62 RenderEmbeddedObject::~RenderEmbeddedObject() |
69 { | 63 { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 { | 272 { |
279 return false; | 273 return false; |
280 } | 274 } |
281 | 275 |
282 bool RenderEmbeddedObject::canHaveChildren() const | 276 bool RenderEmbeddedObject::canHaveChildren() const |
283 { | 277 { |
284 return false; | 278 return false; |
285 } | 279 } |
286 | 280 |
287 } | 281 } |
OLD | NEW |