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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderContainer.h

Issue 20076: WebKit merge 40500:40539 [WebKit side] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2001 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 2001 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 22 matching lines...) Expand all
33 33
34 virtual RenderObjectChildList* virtualChildren() { return children(); } 34 virtual RenderObjectChildList* virtualChildren() { return children(); }
35 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); } 35 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); }
36 const RenderObjectChildList* children() const { return &m_children; } 36 const RenderObjectChildList* children() const { return &m_children; }
37 RenderObjectChildList* children() { return &m_children; } 37 RenderObjectChildList* children() { return &m_children; }
38 38
39 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) ; 39 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) ;
40 virtual void addChildIgnoringContinuation(RenderObject* newChild, RenderObje ct* beforeChild = 0) { return addChild(newChild, beforeChild); } 40 virtual void addChildIgnoringContinuation(RenderObject* newChild, RenderObje ct* beforeChild = 0) { return addChild(newChild, beforeChild); }
41 virtual void removeChild(RenderObject*); 41 virtual void removeChild(RenderObject*);
42 42
43 virtual RenderObject* removeChildNode(RenderObject*, bool fullRemove = true) ;
44 virtual void appendChildNode(RenderObject*, bool fullAppend = true);
45 virtual void insertChildNode(RenderObject* child, RenderObject* before, bool fullInsert = true);
46
47 // Designed for speed. Don't waste time doing a bunch of work like layer up dating and repainting when we know that our
48 // change in parentage is not going to affect anything.
49 virtual void moveChildNode(RenderObject* child) { appendChildNode(child->par ent()->removeChildNode(child, false), false); }
50
51 virtual void calcPrefWidths() { setPrefWidthsDirty(false); }
52
53 RenderObject* beforeAfterContainer(RenderStyle::PseudoId);
54 virtual void updateBeforeAfterContent(RenderStyle::PseudoId);
55 void updateBeforeAfterContentForContainer(RenderStyle::PseudoId, RenderConta iner*);
56 bool isAfterContent(RenderObject* child) const;
57 virtual void invalidateCounters();
58
59 virtual VisiblePosition positionForCoordinates(int x, int y);
60
61 virtual void addLineBoxRects(Vector<IntRect>&, unsigned startOffset = 0, uns igned endOffset = UINT_MAX, bool useSelectionHeight = false); 43 virtual void addLineBoxRects(Vector<IntRect>&, unsigned startOffset = 0, uns igned endOffset = UINT_MAX, bool useSelectionHeight = false);
62 virtual void collectAbsoluteLineBoxQuads(Vector<FloatQuad>&, unsigned startO ffset = 0, unsigned endOffset = UINT_MAX, bool useSelectionHeight = false); 44 virtual void collectAbsoluteLineBoxQuads(Vector<FloatQuad>&, unsigned startO ffset = 0, unsigned endOffset = UINT_MAX, bool useSelectionHeight = false);
63 45
64 protected: 46 protected:
65 RenderObjectChildList m_children; 47 RenderObjectChildList m_children;
66 }; 48 };
67 49
68 } // namespace WebCore 50 } // namespace WebCore
69 51
70 #endif // RenderContainer_h 52 #endif // RenderContainer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderButton.cpp ('k') | third_party/WebKit/WebCore/rendering/RenderContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698