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

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

Issue 1077453002: Remove dead createAnonymous functions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « sky/engine/core/rendering/RenderInline.h ('k') | no next file » | 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 RenderLineBoxList m_lineBoxes; 44 RenderLineBoxList m_lineBoxes;
45 }; 45 };
46 46
47 COMPILE_ASSERT(sizeof(RenderInline) == sizeof(SameSizeAsRenderInline), RenderInl ine_should_stay_small); 47 COMPILE_ASSERT(sizeof(RenderInline) == sizeof(SameSizeAsRenderInline), RenderInl ine_should_stay_small);
48 48
49 RenderInline::RenderInline(Element* element) 49 RenderInline::RenderInline(Element* element)
50 : RenderBoxModelObject(element) 50 : RenderBoxModelObject(element)
51 { 51 {
52 } 52 }
53 53
54 RenderInline* RenderInline::createAnonymous(Document* document)
55 {
56 RenderInline* renderer = new RenderInline(0);
57 renderer->setDocumentForAnonymous(document);
58 return renderer;
59 }
60
61 void RenderInline::willBeDestroyed() 54 void RenderInline::willBeDestroyed()
62 { 55 {
63 // Make sure to destroy anonymous children first while they are still connec ted to the rest of the tree, so that they will 56 // Make sure to destroy anonymous children first while they are still connec ted to the rest of the tree, so that they will
64 // properly dirty line boxes that they are removed from. Effects that do :b efore/:after only on hover could crash otherwise. 57 // properly dirty line boxes that they are removed from. Effects that do :b efore/:after only on hover could crash otherwise.
65 children()->destroyLeftoverChildren(); 58 children()->destroyLeftoverChildren();
66 59
67 if (!documentBeingDestroyed()) { 60 if (!documentBeingDestroyed()) {
68 if (firstLineBox()) { 61 if (firstLineBox()) {
69 // We can't wait for RenderBoxModelObject::destroy to clear the sele ction, 62 // We can't wait for RenderBoxModelObject::destroy to clear the sele ction,
70 // because by then we will have nuked the line boxes. 63 // because by then we will have nuked the line boxes.
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 689
697 void RenderInline::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& additionalOffset, const RenderBox* paintContainer) const 690 void RenderInline::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& additionalOffset, const RenderBox* paintContainer) const
698 { 691 {
699 AbsoluteRectsIgnoringEmptyRectsGeneratorContext context(rects, additionalOff set); 692 AbsoluteRectsIgnoringEmptyRectsGeneratorContext context(rects, additionalOff set);
700 generateLineBoxRects(context); 693 generateLineBoxRects(context);
701 694
702 addChildFocusRingRects(rects, additionalOffset, paintContainer); 695 addChildFocusRingRects(rects, additionalOffset, paintContainer);
703 } 696 }
704 697
705 } // namespace blink 698 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderInline.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698