| 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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio
nStyleSolid) { } | 612 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio
nStyleSolid) { } |
| 613 }; | 613 }; |
| 614 | 614 |
| 615 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli
ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu
irksMode = false, bool firstlineStyle = false); | 615 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli
ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu
irksMode = false, bool firstlineStyle = false); |
| 616 | 616 |
| 617 // Return the RenderLayerModelObject in the container chain which is respons
ible for painting this object, or 0 | 617 // Return the RenderLayerModelObject in the container chain which is respons
ible for painting this object, or 0 |
| 618 // if painting is root-relative. This is the container that should be passed
to the 'forPaintInvalidation' | 618 // if painting is root-relative. This is the container that should be passed
to the 'forPaintInvalidation' |
| 619 // methods. | 619 // methods. |
| 620 const RenderLayerModelObject* containerForPaintInvalidation() const; | 620 const RenderLayerModelObject* containerForPaintInvalidation() const; |
| 621 const RenderLayerModelObject* adjustCompositedContainerForSpecialAncestors(c
onst RenderLayerModelObject* paintInvalidationContainer) const; | 621 const RenderLayerModelObject* adjustCompositedContainerForSpecialAncestors(c
onst RenderLayerModelObject* paintInvalidationContainer) const; |
| 622 bool isPaintInvalidationContainer() const; | |
| 623 | 622 |
| 624 LayoutRect computePaintInvalidationRect() | 623 LayoutRect computePaintInvalidationRect() |
| 625 { | 624 { |
| 626 return computePaintInvalidationRect(containerForPaintInvalidation()); | 625 return computePaintInvalidationRect(containerForPaintInvalidation()); |
| 627 } | 626 } |
| 628 | 627 |
| 629 // Returns the paint invalidation rect for this RenderObject in the coordina
te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation
Container|. | 628 // Returns the paint invalidation rect for this RenderObject in the coordina
te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation
Container|. |
| 630 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI
nvalidationContainer, const PaintInvalidationState* = 0) const; | 629 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI
nvalidationContainer, const PaintInvalidationState* = 0) const; |
| 631 | 630 |
| 632 // Returns the rect bounds needed to invalidate the paint of this object, in
the coordinate space of the rendering backing of |paintInvalidationContainer| | 631 // Returns the rect bounds needed to invalidate the paint of this object, in
the coordinate space of the rendering backing of |paintInvalidationContainer| |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 return layoutDidGetCalled() || shouldDoFullPaintInvalidation() || should
DoFullPaintInvalidationIfSelfPaintingLayer() | 879 return layoutDidGetCalled() || shouldDoFullPaintInvalidation() || should
DoFullPaintInvalidationIfSelfPaintingLayer() |
| 881 || onlyNeededPositionedMovementLayout() || neededLayoutBecauseOfChil
dren() || mayNeedPaintInvalidation(); | 880 || onlyNeededPositionedMovementLayout() || neededLayoutBecauseOfChil
dren() || mayNeedPaintInvalidation(); |
| 882 } | 881 } |
| 883 #endif | 882 #endif |
| 884 | 883 |
| 885 private: | 884 private: |
| 886 // Invalidate the paint of the entire object. This is only used when a rende
rer is to be removed. | 885 // Invalidate the paint of the entire object. This is only used when a rende
rer is to be removed. |
| 887 // For other cases, the caller should call setShouldDoFullPaintInvalidation(
) instead. | 886 // For other cases, the caller should call setShouldDoFullPaintInvalidation(
) instead. |
| 888 void invalidatePaintForWholeRenderer() const; | 887 void invalidatePaintForWholeRenderer() const; |
| 889 | 888 |
| 890 const RenderLayerModelObject* enclosingCompositedContainer() const; | |
| 891 | |
| 892 bool hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor() const; | 889 bool hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor() const; |
| 893 | 890 |
| 894 StyleDifference adjustStyleDifference(StyleDifference) const; | 891 StyleDifference adjustStyleDifference(StyleDifference) const; |
| 895 | 892 |
| 896 Color selectionColor(int colorProperty) const; | 893 Color selectionColor(int colorProperty) const; |
| 897 | 894 |
| 898 #if ENABLE(ASSERT) | 895 #if ENABLE(ASSERT) |
| 899 void checkBlockPositionedObjectsNeedLayout(); | 896 void checkBlockPositionedObjectsNeedLayout(); |
| 900 #endif | 897 #endif |
| 901 const char* invalidationReasonToString(InvalidationReason) const; | 898 const char* invalidationReasonToString(InvalidationReason) const; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 void showTree(const blink::RenderObject*); | 1188 void showTree(const blink::RenderObject*); |
| 1192 void showLineTree(const blink::RenderObject*); | 1189 void showLineTree(const blink::RenderObject*); |
| 1193 void showRenderTree(const blink::RenderObject* object1); | 1190 void showRenderTree(const blink::RenderObject* object1); |
| 1194 // We don't make object2 an optional parameter so that showRenderTree | 1191 // We don't make object2 an optional parameter so that showRenderTree |
| 1195 // can be called from gdb easily. | 1192 // can be called from gdb easily. |
| 1196 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1193 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1197 | 1194 |
| 1198 #endif | 1195 #endif |
| 1199 | 1196 |
| 1200 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ | 1197 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ |
| OLD | NEW |