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

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

Issue 203463007: Recompute overflow after transform changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderLayerScrollableArea.cpp ('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 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 if (diff == StyleDifferenceLayout) 2105 if (diff == StyleDifferenceLayout)
2106 setNeedsLayoutAndPrefWidthsRecalc(); 2106 setNeedsLayoutAndPrefWidthsRecalc();
2107 else 2107 else
2108 setNeedsSimplifiedNormalFlowLayout(); 2108 setNeedsSimplifiedNormalFlowLayout();
2109 } else if (diff == StyleDifferenceSimplifiedLayoutAndPositionedMovement) { 2109 } else if (diff == StyleDifferenceSimplifiedLayoutAndPositionedMovement) {
2110 setNeedsPositionedMovementLayout(); 2110 setNeedsPositionedMovementLayout();
2111 setNeedsSimplifiedNormalFlowLayout(); 2111 setNeedsSimplifiedNormalFlowLayout();
2112 } else if (diff == StyleDifferenceLayoutPositionedMovementOnly) 2112 } else if (diff == StyleDifferenceLayoutPositionedMovementOnly)
2113 setNeedsPositionedMovementLayout(); 2113 setNeedsPositionedMovementLayout();
2114 2114
2115 if (!needsLayout() && oldStyle && oldStyle->transform() != m_style->transfor m()) {
2116 if (RenderBlock* container = containingBlock())
2117 container->updateOverflowForTransform();
esprehn 2014/03/26 02:06:20 This needs to be async, otherwise if you transform
2118 }
2119
2115 // Don't check for repaint here; we need to wait until the layer has been 2120 // Don't check for repaint here; we need to wait until the layer has been
2116 // updated by subclasses before we know if we have to repaint (in setStyle() ). 2121 // updated by subclasses before we know if we have to repaint (in setStyle() ).
2117 2122
2118 if (oldStyle && !areCursorsEqual(oldStyle, style())) { 2123 if (oldStyle && !areCursorsEqual(oldStyle, style())) {
2119 if (LocalFrame* frame = this->frame()) 2124 if (LocalFrame* frame = this->frame())
2120 frame->eventHandler().scheduleCursorUpdate(); 2125 frame->eventHandler().scheduleCursorUpdate();
2121 } 2126 }
2122 } 2127 }
2123 2128
2124 void RenderObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) 2129 void RenderObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly)
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
3345 { 3350 {
3346 if (object1) { 3351 if (object1) {
3347 const WebCore::RenderObject* root = object1; 3352 const WebCore::RenderObject* root = object1;
3348 while (root->parent()) 3353 while (root->parent())
3349 root = root->parent(); 3354 root = root->parent();
3350 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3355 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3351 } 3356 }
3352 } 3357 }
3353 3358
3354 #endif 3359 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698