Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: Source/WebCore/rendering/RenderObject.h

Issue 12084049: Merge 140202 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderLayer.cpp ('k') | Source/WebCore/rendering/RenderObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 // Convert the given local point to absolute coordinates 728 // Convert the given local point to absolute coordinates
729 // FIXME: Temporary. If UseTransforms is true, take transforms into account. Eventually localToAbsolute() will always be transform-aware. 729 // FIXME: Temporary. If UseTransforms is true, take transforms into account. Eventually localToAbsolute() will always be transform-aware.
730 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC oordinatesFlags = 0) const; 730 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC oordinatesFlags = 0) const;
731 FloatPoint absoluteToLocal(const FloatPoint&, MapCoordinatesFlags = 0) const ; 731 FloatPoint absoluteToLocal(const FloatPoint&, MapCoordinatesFlags = 0) const ;
732 732
733 // Convert a local quad to absolute coordinates, taking transforms into acco unt. 733 // Convert a local quad to absolute coordinates, taking transforms into acco unt.
734 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod e = 0, bool* wasFixed = 0) const 734 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod e = 0, bool* wasFixed = 0) const
735 { 735 {
736 return localToContainerQuad(quad, 0, mode, wasFixed); 736 return localToContainerQuad(quad, 0, mode, wasFixed);
737 } 737 }
738 // Convert an absolute quad to local coordinates.
739 FloatQuad absoluteToLocalQuad(const FloatQuad&, MapCoordinatesFlags mode = 0 ) const;
738 740
739 // Convert a local quad into the coordinate system of container, taking tran sforms into account. 741 // Convert a local quad into the coordinate system of container, taking tran sforms into account.
740 FloatQuad localToContainerQuad(const FloatQuad&, const RenderLayerModelObjec t* repaintContainer, MapCoordinatesFlags = 0, bool* wasFixed = 0) const; 742 FloatQuad localToContainerQuad(const FloatQuad&, const RenderLayerModelObjec t* repaintContainer, MapCoordinatesFlags = 0, bool* wasFixed = 0) const;
741 FloatPoint localToContainerPoint(const FloatPoint&, const RenderLayerModelOb ject* repaintContainer, MapCoordinatesFlags = 0, bool* wasFixed = 0) const; 743 FloatPoint localToContainerPoint(const FloatPoint&, const RenderLayerModelOb ject* repaintContainer, MapCoordinatesFlags = 0, bool* wasFixed = 0) const;
742 744
743 // Return the offset from the container() renderer (excluding transforms). I n multi-column layout, 745 // Return the offset from the container() renderer (excluding transforms). I n multi-column layout,
744 // different offsets apply at different points, so return the offset that ap plies to the given point. 746 // different offsets apply at different points, so return the offset that ap plies to the given point.
745 virtual LayoutSize offsetFromContainer(RenderObject*, const LayoutPoint&, bo ol* offsetDependsOnPoint = 0) const; 747 virtual LayoutSize offsetFromContainer(RenderObject*, const LayoutPoint&, bo ol* offsetDependsOnPoint = 0) const;
746 // Return the offset from an object up the container() chain. Asserts that n one of the intermediate objects have transforms. 748 // Return the offset from an object up the container() chain. Asserts that n one of the intermediate objects have transforms.
747 LayoutSize offsetFromAncestorContainer(RenderObject*) const; 749 LayoutSize offsetFromAncestorContainer(RenderObject*) const;
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 // Outside the WebCore namespace for ease of invocation from gdb. 1300 // Outside the WebCore namespace for ease of invocation from gdb.
1299 void showTree(const WebCore::RenderObject*); 1301 void showTree(const WebCore::RenderObject*);
1300 void showLineTree(const WebCore::RenderObject*); 1302 void showLineTree(const WebCore::RenderObject*);
1301 void showRenderTree(const WebCore::RenderObject* object1); 1303 void showRenderTree(const WebCore::RenderObject* object1);
1302 // We don't make object2 an optional parameter so that showRenderTree 1304 // We don't make object2 an optional parameter so that showRenderTree
1303 // can be called from gdb easily. 1305 // can be called from gdb easily.
1304 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1306 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1305 #endif 1307 #endif
1306 1308
1307 #endif // RenderObject_h 1309 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderLayer.cpp ('k') | Source/WebCore/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698