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

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

Issue 27648002: Refine toRenderSVGResourceContainer() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 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 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 bool RenderObject::canHaveGeneratedChildren() const 3302 bool RenderObject::canHaveGeneratedChildren() const
3303 { 3303 {
3304 return canHaveChildren(); 3304 return canHaveChildren();
3305 } 3305 }
3306 3306
3307 bool RenderObject::canBeReplacedWithInlineRunIn() const 3307 bool RenderObject::canBeReplacedWithInlineRunIn() const
3308 { 3308 {
3309 return true; 3309 return true;
3310 } 3310 }
3311 3311
3312 RenderSVGResourceContainer* RenderObject::toRenderSVGResourceContainer()
3313 {
3314 ASSERT_NOT_REACHED();
3315 return 0;
3316 }
3317
3318 void RenderObject::setNeedsBoundariesUpdate() 3312 void RenderObject::setNeedsBoundariesUpdate()
3319 { 3313 {
3320 if (RenderObject* renderer = parent()) 3314 if (RenderObject* renderer = parent())
3321 renderer->setNeedsBoundariesUpdate(); 3315 renderer->setNeedsBoundariesUpdate();
3322 } 3316 }
3323 3317
3324 FloatRect RenderObject::objectBoundingBox() const 3318 FloatRect RenderObject::objectBoundingBox() const
3325 { 3319 {
3326 ASSERT_NOT_REACHED(); 3320 ASSERT_NOT_REACHED();
3327 return FloatRect(); 3321 return FloatRect();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
3400 { 3394 {
3401 if (object1) { 3395 if (object1) {
3402 const WebCore::RenderObject* root = object1; 3396 const WebCore::RenderObject* root = object1;
3403 while (root->parent()) 3397 while (root->parent())
3404 root = root->parent(); 3398 root = root->parent();
3405 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3399 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3406 } 3400 }
3407 } 3401 }
3408 3402
3409 #endif 3403 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/svg/RenderSVGGradientStop.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698