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

Side by Side Diff: Source/core/layout/LayoutPart.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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/layout/LayoutPart.h ('k') | Source/core/layout/LayoutQuote.h » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> 3 * (C) 2000 Simon Hausmann <hausmann@kde.org>
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 return nodeAtPointOverWidget(request, result, locationInContainer, accumulat edOffset, action); 175 return nodeAtPointOverWidget(request, result, locationInContainer, accumulat edOffset, action);
176 } 176 }
177 177
178 CompositingReasons LayoutPart::additionalCompositingReasons() const 178 CompositingReasons LayoutPart::additionalCompositingReasons() const
179 { 179 {
180 if (requiresAcceleratedCompositing()) 180 if (requiresAcceleratedCompositing())
181 return CompositingReasonIFrame; 181 return CompositingReasonIFrame;
182 return CompositingReasonNone; 182 return CompositingReasonNone;
183 } 183 }
184 184
185 void LayoutPart::styleDidChange(StyleDifference diff, const LayoutStyle* oldStyl e) 185 void LayoutPart::styleDidChange(StyleDifference diff, const ComputedStyle* oldSt yle)
186 { 186 {
187 LayoutReplaced::styleDidChange(diff, oldStyle); 187 LayoutReplaced::styleDidChange(diff, oldStyle);
188 Widget* widget = this->widget(); 188 Widget* widget = this->widget();
189 189
190 if (!widget) 190 if (!widget)
191 return; 191 return;
192 192
193 // If the iframe has custom scrollbars, recalculate their style. 193 // If the iframe has custom scrollbars, recalculate their style.
194 if (widget && widget->isFrameView()) 194 if (widget && widget->isFrameView())
195 toFrameView(widget)->recalculateCustomScrollbarStyle(); 195 toFrameView(widget)->recalculateCustomScrollbarStyle();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 if (widget->frameRect() == newFrame) 323 if (widget->frameRect() == newFrame)
324 return false; 324 return false;
325 325
326 RefPtrWillBeRawPtr<LayoutPart> protector(this); 326 RefPtrWillBeRawPtr<LayoutPart> protector(this);
327 RefPtrWillBeRawPtr<Node> protectedNode(node()); 327 RefPtrWillBeRawPtr<Node> protectedNode(node());
328 widget->setFrameRect(newFrame); 328 widget->setFrameRect(newFrame);
329 return widget->frameRect().size() != newFrame.size(); 329 return widget->frameRect().size() != newFrame.size();
330 } 330 }
331 331
332 } 332 }
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutPart.h ('k') | Source/core/layout/LayoutQuote.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698