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

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: 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 3288 matching lines...) Expand 10 before | Expand all | Expand 10 after
3299 bool RenderObject::canHaveGeneratedChildren() const 3299 bool RenderObject::canHaveGeneratedChildren() const
3300 { 3300 {
3301 return canHaveChildren(); 3301 return canHaveChildren();
3302 } 3302 }
3303 3303
3304 bool RenderObject::canBeReplacedWithInlineRunIn() const 3304 bool RenderObject::canBeReplacedWithInlineRunIn() const
3305 { 3305 {
3306 return true; 3306 return true;
3307 } 3307 }
3308 3308
3309 RenderSVGResourceContainer* RenderObject::toRenderSVGResourceContainer()
3310 {
3311 ASSERT_NOT_REACHED();
3312 return 0;
3313 }
3314
3315 void RenderObject::setNeedsBoundariesUpdate() 3309 void RenderObject::setNeedsBoundariesUpdate()
3316 { 3310 {
3317 if (RenderObject* renderer = parent()) 3311 if (RenderObject* renderer = parent())
3318 renderer->setNeedsBoundariesUpdate(); 3312 renderer->setNeedsBoundariesUpdate();
3319 } 3313 }
3320 3314
3321 FloatRect RenderObject::objectBoundingBox() const 3315 FloatRect RenderObject::objectBoundingBox() const
3322 { 3316 {
3323 ASSERT_NOT_REACHED(); 3317 ASSERT_NOT_REACHED();
3324 return FloatRect(); 3318 return FloatRect();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
3397 { 3391 {
3398 if (object1) { 3392 if (object1) {
3399 const WebCore::RenderObject* root = object1; 3393 const WebCore::RenderObject* root = object1;
3400 while (root->parent()) 3394 while (root->parent())
3401 root = root->parent(); 3395 root = root->parent();
3402 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3396 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3403 } 3397 }
3404 } 3398 }
3405 3399
3406 #endif 3400 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698