| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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 #ifndef RenderObject_h | 26 #ifndef RenderObject_h |
| 27 #define RenderObject_h | 27 #define RenderObject_h |
| 28 | 28 |
| 29 #include "core/dom/Element.h" | 29 #include "core/dom/Element.h" |
| 30 #include "core/dom/Position.h" | 30 #include "core/dom/Position.h" |
| 31 #include "core/dom/StyleSheetCollections.h" | 31 #include "core/dom/StyleEngine.h" |
| 32 #include "core/fetch/ImageResourceClient.h" | 32 #include "core/fetch/ImageResourceClient.h" |
| 33 #include "core/platform/graphics/FloatQuad.h" | 33 #include "core/platform/graphics/FloatQuad.h" |
| 34 #include "core/platform/graphics/LayoutRect.h" | 34 #include "core/platform/graphics/LayoutRect.h" |
| 35 #include "core/platform/graphics/transforms/TransformationMatrix.h" | 35 #include "core/platform/graphics/transforms/TransformationMatrix.h" |
| 36 #include "core/rendering/LayoutIndicator.h" | 36 #include "core/rendering/LayoutIndicator.h" |
| 37 #include "core/rendering/PaintPhase.h" | 37 #include "core/rendering/PaintPhase.h" |
| 38 #include "core/rendering/RenderObjectChildList.h" | 38 #include "core/rendering/RenderObjectChildList.h" |
| 39 #include "core/rendering/RenderingNodeProxy.h" | 39 #include "core/rendering/RenderingNodeProxy.h" |
| 40 #include "core/rendering/ScrollBehavior.h" | 40 #include "core/rendering/ScrollBehavior.h" |
| 41 #include "core/rendering/SubtreeLayoutScope.h" | 41 #include "core/rendering/SubtreeLayoutScope.h" |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 | 767 |
| 768 static FloatRect absoluteBoundingBoxRectForRange(const Range*); | 768 static FloatRect absoluteBoundingBoxRectForRange(const Range*); |
| 769 | 769 |
| 770 // the rect that will be painted if this object is passed as the paintingRoo
t | 770 // the rect that will be painted if this object is passed as the paintingRoo
t |
| 771 LayoutRect paintingRootRect(LayoutRect& topLevelRect); | 771 LayoutRect paintingRootRect(LayoutRect& topLevelRect); |
| 772 | 772 |
| 773 virtual LayoutUnit minPreferredLogicalWidth() const { return 0; } | 773 virtual LayoutUnit minPreferredLogicalWidth() const { return 0; } |
| 774 virtual LayoutUnit maxPreferredLogicalWidth() const { return 0; } | 774 virtual LayoutUnit maxPreferredLogicalWidth() const { return 0; } |
| 775 | 775 |
| 776 RenderStyle* style() const { return m_style.get(); } | 776 RenderStyle* style() const { return m_style.get(); } |
| 777 RenderStyle* firstLineStyle() const { return document().styleSheetCollection
s()->usesFirstLineRules() ? cachedFirstLineStyle() : style(); } | 777 RenderStyle* firstLineStyle() const { return document().styleEngine()->usesF
irstLineRules() ? cachedFirstLineStyle() : style(); } |
| 778 RenderStyle* style(bool firstLine) const { return firstLine ? firstLineStyle
() : style(); } | 778 RenderStyle* style(bool firstLine) const { return firstLine ? firstLineStyle
() : style(); } |
| 779 | 779 |
| 780 inline Color resolveColor(const RenderStyle* styleToUse, int colorProperty)
const | 780 inline Color resolveColor(const RenderStyle* styleToUse, int colorProperty)
const |
| 781 { | 781 { |
| 782 return styleToUse->visitedDependentColor(colorProperty); | 782 return styleToUse->visitedDependentColor(colorProperty); |
| 783 } | 783 } |
| 784 | 784 |
| 785 inline Color resolveColor(int colorProperty) const | 785 inline Color resolveColor(int colorProperty) const |
| 786 { | 786 { |
| 787 return style()->visitedDependentColor(colorProperty); | 787 return style()->visitedDependentColor(colorProperty); |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1376 void showTree(const WebCore::RenderObject*); | 1376 void showTree(const WebCore::RenderObject*); |
| 1377 void showLineTree(const WebCore::RenderObject*); | 1377 void showLineTree(const WebCore::RenderObject*); |
| 1378 void showRenderTree(const WebCore::RenderObject* object1); | 1378 void showRenderTree(const WebCore::RenderObject* object1); |
| 1379 // We don't make object2 an optional parameter so that showRenderTree | 1379 // We don't make object2 an optional parameter so that showRenderTree |
| 1380 // can be called from gdb easily. | 1380 // can be called from gdb easily. |
| 1381 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1381 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
| 1382 | 1382 |
| 1383 #endif | 1383 #endif |
| 1384 | 1384 |
| 1385 #endif // RenderObject_h | 1385 #endif // RenderObject_h |
| OLD | NEW |