| 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 943     // Pushes state onto RenderGeometryMap about how to map coordinates from thi
      s renderer to its container, or ancestorToStopAt (whichever is encountered first
      ). | 943     // Pushes state onto RenderGeometryMap about how to map coordinates from thi
      s renderer to its container, or ancestorToStopAt (whichever is encountered first
      ). | 
| 944     // Returns the renderer which was mapped to (container or ancestorToStopAt). | 944     // Returns the renderer which was mapped to (container or ancestorToStopAt). | 
| 945     virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
      ect* ancestorToStopAt, RenderGeometryMap&) const; | 945     virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
      ect* ancestorToStopAt, RenderGeometryMap&) const; | 
| 946 | 946 | 
| 947     bool shouldUseTransformFromContainer(const RenderObject* container) const; | 947     bool shouldUseTransformFromContainer(const RenderObject* container) const; | 
| 948     void getTransformFromContainer(const RenderObject* container, const LayoutSi
      ze& offsetInContainer, TransformationMatrix&) const; | 948     void getTransformFromContainer(const RenderObject* container, const LayoutSi
      ze& offsetInContainer, TransformationMatrix&) const; | 
| 949 | 949 | 
| 950     // return true if this object requires a new stacking context | 950     // return true if this object requires a new stacking context | 
| 951     bool createsGroup() const { return isTransparent() || hasMask() || hasFilter
      () || hasBlendMode(); } | 951     bool createsGroup() const { return isTransparent() || hasMask() || hasFilter
      () || hasBlendMode(); } | 
| 952 | 952 | 
| 953     virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint&) { }; | 953     virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& /* addit
      ionalOffset */, const RenderLayerModelObject* /* paintContainer */ = 0) { }; | 
| 954 | 954 | 
| 955     LayoutRect absoluteOutlineBounds() const | 955     LayoutRect absoluteOutlineBounds() const | 
| 956     { | 956     { | 
| 957         return outlineBoundsForRepaint(0); | 957         return outlineBoundsForRepaint(0); | 
| 958     } | 958     } | 
| 959 | 959 | 
| 960     // Return the renderer whose background style is used to paint the root back
      ground. Should only be called on the renderer for which isRoot() is true. | 960     // Return the renderer whose background style is used to paint the root back
      ground. Should only be called on the renderer for which isRoot() is true. | 
| 961     RenderObject* rendererForRootBackground(); | 961     RenderObject* rendererForRootBackground(); | 
| 962 | 962 | 
| 963     RespectImageOrientationEnum shouldRespectImageOrientation() const; | 963     RespectImageOrientationEnum shouldRespectImageOrientation() const; | 
| 964 | 964 | 
| 965 protected: | 965 protected: | 
| 966     inline bool layerCreationAllowedForSubtree() const; | 966     inline bool layerCreationAllowedForSubtree() const; | 
| 967 | 967 | 
| 968     // Overrides should call the superclass at the end | 968     // Overrides should call the superclass at the end | 
| 969     virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); | 969     virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); | 
| 970     // Overrides should call the superclass at the start | 970     // Overrides should call the superclass at the start | 
| 971     virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 971     virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); | 
| 972     void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); | 972     void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); | 
| 973 | 973 | 
| 974     void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo
      xSide, | 974     void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo
      xSide, | 
| 975                             Color, EBorderStyle, int adjbw1, int adjbw2, bool an
      tialias = false); | 975                             Color, EBorderStyle, int adjbw1, int adjbw2, bool an
      tialias = false); | 
| 976 | 976 | 
| 977     void paintFocusRing(GraphicsContext*, const LayoutPoint&, RenderStyle*); | 977     void paintFocusRing(PaintInfo&, const LayoutPoint&, RenderStyle*); | 
| 978     void paintOutline(GraphicsContext*, const LayoutRect&); | 978     void paintOutline(PaintInfo&, const LayoutRect&); | 
| 979     void addPDFURLRect(GraphicsContext*, const LayoutRect&); | 979     void addPDFURLRect(GraphicsContext*, const LayoutRect&); | 
| 980 | 980 | 
| 981     virtual LayoutRect viewRect() const; | 981     virtual LayoutRect viewRect() const; | 
| 982 | 982 | 
| 983     void adjustRectForOutlineAndShadow(LayoutRect&) const; | 983     void adjustRectForOutlineAndShadow(LayoutRect&) const; | 
| 984 | 984 | 
| 985     void clearLayoutRootIfNeeded() const; | 985     void clearLayoutRootIfNeeded() const; | 
| 986     virtual void willBeDestroyed(); | 986     virtual void willBeDestroyed(); | 
| 987     void arenaDelete(RenderArena*, void* objectBase); | 987     void arenaDelete(RenderArena*, void* objectBase); | 
| 988 | 988 | 
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1310 // Outside the WebCore namespace for ease of invocation from gdb. | 1310 // Outside the WebCore namespace for ease of invocation from gdb. | 
| 1311 void showTree(const WebCore::RenderObject*); | 1311 void showTree(const WebCore::RenderObject*); | 
| 1312 void showLineTree(const WebCore::RenderObject*); | 1312 void showLineTree(const WebCore::RenderObject*); | 
| 1313 void showRenderTree(const WebCore::RenderObject* object1); | 1313 void showRenderTree(const WebCore::RenderObject* object1); | 
| 1314 // We don't make object2 an optional parameter so that showRenderTree | 1314 // We don't make object2 an optional parameter so that showRenderTree | 
| 1315 // can be called from gdb easily. | 1315 // can be called from gdb easily. | 
| 1316 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
      bject* object2); | 1316 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
      bject* object2); | 
| 1317 #endif | 1317 #endif | 
| 1318 | 1318 | 
| 1319 #endif // RenderObject_h | 1319 #endif // RenderObject_h | 
| OLD | NEW | 
|---|