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

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

Issue 286903011: Show DragImage when the dragged element or its parent has transform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
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 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 FloatRect result; 1310 FloatRect result;
1311 for (size_t i = 0; i < quads.size(); ++i) 1311 for (size_t i = 0; i < quads.size(); ++i)
1312 result.unite(quads[i].boundingBox()); 1312 result.unite(quads[i].boundingBox());
1313 1313
1314 return result; 1314 return result;
1315 } 1315 }
1316 1316
1317 void RenderObject::addAbsoluteRectForLayer(LayoutRect& result) 1317 void RenderObject::addAbsoluteRectForLayer(LayoutRect& result)
1318 { 1318 {
1319 if (hasLayer()) 1319 if (hasLayer())
1320 result.unite(absoluteBoundingBoxRectIgnoringTransforms()); 1320 result.unite(absoluteBoundingBoxRect());
1321 for (RenderObject* current = firstChild(); current; current = current->nextS ibling()) 1321 for (RenderObject* current = firstChild(); current; current = current->nextS ibling())
1322 current->addAbsoluteRectForLayer(result); 1322 current->addAbsoluteRectForLayer(result);
1323 } 1323 }
1324 1324
1325 LayoutRect RenderObject::paintingRootRect(LayoutRect& topLevelRect) 1325 LayoutRect RenderObject::paintingRootRect(LayoutRect& topLevelRect)
1326 { 1326 {
1327 LayoutRect result = absoluteBoundingBoxRectIgnoringTransforms(); 1327 LayoutRect result = absoluteBoundingBoxRect();
1328 topLevelRect = result; 1328 topLevelRect = result;
1329 for (RenderObject* current = firstChild(); current; current = current->nextS ibling()) 1329 for (RenderObject* current = firstChild(); current; current = current->nextS ibling())
1330 current->addAbsoluteRectForLayer(result); 1330 current->addAbsoluteRectForLayer(result);
1331 return result; 1331 return result;
1332 } 1332 }
1333 1333
1334 void RenderObject::paint(PaintInfo&, const LayoutPoint&) 1334 void RenderObject::paint(PaintInfo&, const LayoutPoint&)
1335 { 1335 {
1336 } 1336 }
1337 1337
(...skipping 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after
3436 { 3436 {
3437 if (object1) { 3437 if (object1) {
3438 const WebCore::RenderObject* root = object1; 3438 const WebCore::RenderObject* root = object1;
3439 while (root->parent()) 3439 while (root->parent())
3440 root = root->parent(); 3440 root = root->parent();
3441 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3441 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3442 } 3442 }
3443 } 3443 }
3444 3444
3445 #endif 3445 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698