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

Side by Side Diff: sky/engine/core/rendering/RenderBoxModelObject.cpp

Issue 735033003: Remove a bunch of dead code from RenderLayer (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cr comments Created 6 years 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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 RenderObject::setSelectionState(state); 56 RenderObject::setSelectionState(state);
57 57
58 // FIXME: We should consider whether it is OK propagating to ancestor Render Inlines. 58 // FIXME: We should consider whether it is OK propagating to ancestor Render Inlines.
59 // This is a workaround for http://webkit.org/b/32123 59 // This is a workaround for http://webkit.org/b/32123
60 // The containing block can be null in case of an orphaned tree. 60 // The containing block can be null in case of an orphaned tree.
61 RenderBlock* containingBlock = this->containingBlock(); 61 RenderBlock* containingBlock = this->containingBlock();
62 if (containingBlock && !containingBlock->isRenderView()) 62 if (containingBlock && !containingBlock->isRenderView())
63 containingBlock->setSelectionState(state); 63 containingBlock->setSelectionState(state);
64 } 64 }
65 65
66 void RenderBoxModelObject::contentChanged(ContentChangeType changeType)
67 {
68 if (!hasLayer())
69 return;
70
71 layer()->contentChanged(changeType);
72 }
73
74 bool RenderBoxModelObject::hasAcceleratedCompositing() const 66 bool RenderBoxModelObject::hasAcceleratedCompositing() const
75 { 67 {
76 // FIXME(sky): Remove 68 // FIXME(sky): Remove
77 return false; 69 return false;
78 } 70 }
79 71
80 InterpolationQuality RenderBoxModelObject::chooseInterpolationQuality(GraphicsCo ntext* context, Image* image, const void* layer, const LayoutSize& size) 72 InterpolationQuality RenderBoxModelObject::chooseInterpolationQuality(GraphicsCo ntext* context, Image* image, const void* layer, const LayoutSize& size)
81 { 73 {
82 return ImageQualityController::imageQualityController()->chooseInterpolation Quality(context, this, image, layer, size); 74 return ImageQualityController::imageQualityController()->chooseInterpolation Quality(context, this, image, layer, size);
83 } 75 }
(...skipping 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2536 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); 2528 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent());
2537 for (RenderObject* child = slowFirstChild(); child; ) { 2529 for (RenderObject* child = slowFirstChild(); child; ) {
2538 // Save our next sibling as moveChildTo will clear it. 2530 // Save our next sibling as moveChildTo will clear it.
2539 RenderObject* nextSibling = child->nextSibling(); 2531 RenderObject* nextSibling = child->nextSibling();
2540 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); 2532 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert);
2541 child = nextSibling; 2533 child = nextSibling;
2542 } 2534 }
2543 } 2535 }
2544 2536
2545 } // namespace blink 2537 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBoxModelObject.h ('k') | sky/engine/core/rendering/RenderImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698