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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
806 Color color; | 806 Color color; |
807 TextDecorationStyle style; | 807 TextDecorationStyle style; |
808 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio nStyleSolid) { } | 808 AppliedTextDecoration() : color(Color::transparent), style(TextDecoratio nStyleSolid) { } |
809 }; | 809 }; |
810 | 810 |
811 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu irksMode = false, bool firstlineStyle = false); | 811 void getTextDecorations(unsigned decorations, AppliedTextDecoration& underli ne, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool qu irksMode = false, bool firstlineStyle = false); |
812 | 812 |
813 // Return the RenderLayerModelObject in the container chain which is respons ible for painting this object, or 0 | 813 // Return the RenderLayerModelObject in the container chain which is respons ible for painting this object, or 0 |
814 // if painting is root-relative. This is the container that should be passed to the 'forRepaint' | 814 // if painting is root-relative. This is the container that should be passed to the 'forRepaint' |
815 // methods. | 815 // methods. |
816 RenderLayerModelObject* containerForRepaint() const; | 816 const RenderLayerModelObject* containerForRepaint() const; |
817 | 817 |
818 // Actually do the repaint of rect r for this object which has been computed in the coordinate space | 818 // Actually do the repaint of rect r for this object which has been computed in the coordinate space |
819 // of repaintContainer. If repaintContainer is 0, repaint via the view. | 819 // of repaintContainer. If repaintContainer is 0, repaint via the view. |
820 void repaintUsingContainer(const RenderLayerModelObject* repaintContainer, c onst IntRect&, InvalidationReason) const; | 820 void repaintUsingContainer(const RenderLayerModelObject* repaintContainer, c onst IntRect&, InvalidationReason) const; |
821 | 821 |
822 // Repaint the entire object. Called when, e.g., the color of a border chan ges, or when a border | 822 // Repaint the entire object. Called when, e.g., the color of a border chan ges, or when a border |
823 // style changes. | 823 // style changes. |
824 void repaint() const; | 824 void repaint() const; |
825 | 825 |
826 // Repaint a specific subrectangle within a given object. The rect |r| is i n the object's coordinate space. | 826 // Repaint a specific subrectangle within a given object. The rect |r| is i n the object's coordinate space. |
827 void repaintRectangle(const LayoutRect&) const; | 827 void repaintRectangle(const LayoutRect&) const; |
828 | 828 |
829 // Repaint only if our old bounds and new bounds are different. The caller m ay pass in newBounds if they are known. | 829 // Repaint only if our old bounds and new bounds are different. The caller m ay pass in newBounds if they are known. |
830 bool repaintAfterLayoutIfNeeded(const RenderLayerModelObject* repaintContain er, bool wasSelfLayout, | 830 bool repaintAfterLayoutIfNeeded(const RenderLayerModelObject* repaintContain er, bool wasSelfLayout, |
831 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromRepaintCo ntainer, const LayoutRect* newBoundsPtr = 0, const LayoutPoint* newPositionFromR epaintContainer = 0); | 831 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromRepaintCo ntainer, const LayoutRect* newBoundsPtr = 0, const LayoutPoint* newPositionFromR epaintContainer = 0) const; |
Julien - ping for review
2014/05/07 22:55:42
I am on the fence about that. While it is true tha
| |
832 | 832 |
833 // Walk the tree after layout repainting renderers that have changed or move d, updating bounds that have changed, and clearing repaint state. | 833 // Walk the tree after layout repainting renderers that have changed or move d, updating bounds that have changed, and clearing repaint state. |
834 virtual void repaintTreeAfterLayout(); | 834 virtual void repaintTreeAfterLayout(); |
835 | 835 |
836 virtual void repaintOverflow(); | 836 virtual void repaintOverflow(); |
837 void repaintOverflowIfNeeded(); | 837 void repaintOverflowIfNeeded(); |
838 | 838 |
839 bool checkForRepaint() const; | 839 bool checkForRepaint() const; |
840 bool checkForRepaintDuringLayout() const; | 840 bool checkForRepaintDuringLayout() const; |
841 | 841 |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1461 void showTree(const WebCore::RenderObject*); | 1461 void showTree(const WebCore::RenderObject*); |
1462 void showLineTree(const WebCore::RenderObject*); | 1462 void showLineTree(const WebCore::RenderObject*); |
1463 void showRenderTree(const WebCore::RenderObject* object1); | 1463 void showRenderTree(const WebCore::RenderObject* object1); |
1464 // We don't make object2 an optional parameter so that showRenderTree | 1464 // We don't make object2 an optional parameter so that showRenderTree |
1465 // can be called from gdb easily. | 1465 // can be called from gdb easily. |
1466 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); | 1466 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); |
1467 | 1467 |
1468 #endif | 1468 #endif |
1469 | 1469 |
1470 #endif // RenderObject_h | 1470 #endif // RenderObject_h |
OLD | NEW |