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

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

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/RenderObject.h ('k') | no next file » | 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after
2056 2056
2057 FloatPoint RenderObject::absoluteToLocal(const FloatPoint& containerPoint, MapCo ordinatesFlags mode) const 2057 FloatPoint RenderObject::absoluteToLocal(const FloatPoint& containerPoint, MapCo ordinatesFlags mode) const
2058 { 2058 {
2059 TransformState transformState(TransformState::UnapplyInverseTransformDirecti on, containerPoint); 2059 TransformState transformState(TransformState::UnapplyInverseTransformDirecti on, containerPoint);
2060 mapAbsoluteToLocalPoint(mode, transformState); 2060 mapAbsoluteToLocalPoint(mode, transformState);
2061 transformState.flatten(); 2061 transformState.flatten();
2062 2062
2063 return transformState.lastPlanarPoint(); 2063 return transformState.lastPlanarPoint();
2064 } 2064 }
2065 2065
2066 FloatQuad RenderObject::absoluteToLocalQuad(const FloatQuad& quad, MapCoordinate sFlags mode) const
2067 {
2068 TransformState transformState(TransformState::UnapplyInverseTransformDirecti on, quad.boundingBox().center(), quad);
2069 mapAbsoluteToLocalPoint(mode, transformState);
2070 transformState.flatten();
2071 return transformState.lastPlanarQuad();
2072 }
2073
2066 void RenderObject::mapLocalToContainer(const RenderLayerModelObject* repaintCont ainer, TransformState& transformState, MapCoordinatesFlags mode, bool* wasFixed) const 2074 void RenderObject::mapLocalToContainer(const RenderLayerModelObject* repaintCont ainer, TransformState& transformState, MapCoordinatesFlags mode, bool* wasFixed) const
2067 { 2075 {
2068 if (repaintContainer == this) 2076 if (repaintContainer == this)
2069 return; 2077 return;
2070 2078
2071 RenderObject* o = parent(); 2079 RenderObject* o = parent();
2072 if (!o) 2080 if (!o)
2073 return; 2081 return;
2074 2082
2075 // FIXME: this should call offsetFromContainer to share code, but I'm not su re it's ever called. 2083 // FIXME: this should call offsetFromContainer to share code, but I'm not su re it's ever called.
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
3178 { 3186 {
3179 if (object1) { 3187 if (object1) {
3180 const WebCore::RenderObject* root = object1; 3188 const WebCore::RenderObject* root = object1;
3181 while (root->parent()) 3189 while (root->parent())
3182 root = root->parent(); 3190 root = root->parent();
3183 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3191 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3184 } 3192 }
3185 } 3193 }
3186 3194
3187 #endif 3195 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698