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

Side by Side Diff: Source/core/dom/Element.cpp

Issue 280633002: Rename RenderObject::setNeedsLayout to setNeedsLayoutAndFullRepaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 7 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 | « no previous file | Source/core/frame/FrameView.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) 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) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
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 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 if (!newPseudoStyle) 1471 if (!newPseudoStyle)
1472 return true; 1472 return true;
1473 if (*newPseudoStyle != *pseudoStyleCache->at(i)) { 1473 if (*newPseudoStyle != *pseudoStyleCache->at(i)) {
1474 if (pseudoId < FIRST_INTERNAL_PSEUDOID) 1474 if (pseudoId < FIRST_INTERNAL_PSEUDOID)
1475 newStyle->setHasPseudoStyle(pseudoId); 1475 newStyle->setHasPseudoStyle(pseudoId);
1476 newStyle->addCachedPseudoStyle(newPseudoStyle); 1476 newStyle->addCachedPseudoStyle(newPseudoStyle);
1477 if (pseudoId == FIRST_LINE || pseudoId == FIRST_LINE_INHERITED) { 1477 if (pseudoId == FIRST_LINE || pseudoId == FIRST_LINE_INHERITED) {
1478 // FIXME: We should do an actual diff to determine whether a rep aint vs. layout 1478 // FIXME: We should do an actual diff to determine whether a rep aint vs. layout
1479 // is needed, but for now just assume a layout will be required. The diff code 1479 // is needed, but for now just assume a layout will be required. The diff code
1480 // in RenderObject::setStyle would need to be factored out so th at it could be reused. 1480 // in RenderObject::setStyle would need to be factored out so th at it could be reused.
1481 renderer()->setNeedsLayoutAndPrefWidthsRecalc(); 1481 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint();
1482 } 1482 }
1483 return true; 1483 return true;
1484 } 1484 }
1485 } 1485 }
1486 return false; 1486 return false;
1487 } 1487 }
1488 1488
1489 PassRefPtr<RenderStyle> Element::styleForRenderer() 1489 PassRefPtr<RenderStyle> Element::styleForRenderer()
1490 { 1490 {
1491 ASSERT(document().inStyleRecalc()); 1491 ASSERT(document().inStyleRecalc());
(...skipping 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after
3301 3301
3302 void Element::trace(Visitor* visitor) 3302 void Element::trace(Visitor* visitor)
3303 { 3303 {
3304 if (hasRareData()) 3304 if (hasRareData())
3305 visitor->trace(elementRareData()); 3305 visitor->trace(elementRareData());
3306 3306
3307 ContainerNode::trace(visitor); 3307 ContainerNode::trace(visitor);
3308 } 3308 }
3309 3309
3310 } // namespace WebCore 3310 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698