 Chromium Code Reviews
 Chromium Code Reviews Issue 99663004:
  Avoid layout/full-repaint on view height change if possible  (Closed) 
  Base URL: svn://svn.chromium.org/blink/trunk
    
  
    Issue 99663004:
  Avoid layout/full-repaint on view height change if possible  (Closed) 
  Base URL: svn://svn.chromium.org/blink/trunk| Index: Source/core/rendering/svg/RenderSVGRoot.cpp | 
| diff --git a/Source/core/rendering/svg/RenderSVGRoot.cpp b/Source/core/rendering/svg/RenderSVGRoot.cpp | 
| index a4355cd4d9a64fa26624811b990ef5e4b1af31da..fc6bb767ebb4e509841ace9c67c613bb36e74720 100644 | 
| --- a/Source/core/rendering/svg/RenderSVGRoot.cpp | 
| +++ b/Source/core/rendering/svg/RenderSVGRoot.cpp | 
| @@ -173,10 +173,9 @@ LayoutUnit RenderSVGRoot::computeReplacedLogicalHeight() const | 
| if (height.isPercent()) { | 
| RenderBlock* cb = containingBlock(); | 
| ASSERT(cb); | 
| - while (cb->isAnonymous()) { | 
| + while (cb->isAnonymous()) | 
| cb = cb->containingBlock(); | 
| - cb->addPercentHeightDescendant(const_cast<RenderSVGRoot*>(this)); | 
| - } | 
| + cb->addPercentHeightDescendant(const_cast<RenderSVGRoot*>(this)); | 
| 
ojan
2013/12/18 00:48:20
Ditto the other comment. Don't see why this is cor
 | 
| } else | 
| RenderBlock::removePercentHeightDescendant(const_cast<RenderSVGRoot*>(this)); |