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

Unified Diff: Source/WebCore/rendering/RenderObject.h

Issue 7946014: Merge 95461 - Child not placed correctly when beforeChild (table part) (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderBlock.cpp ('k') | Source/WebCore/rendering/RenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderObject.h
===================================================================
--- Source/WebCore/rendering/RenderObject.h (revision 95468)
+++ Source/WebCore/rendering/RenderObject.h (working copy)
@@ -337,6 +337,28 @@
static inline bool isAfterContent(const RenderObject* obj) { return obj && obj->isAfterContent(); }
static inline bool isBeforeOrAfterContent(const RenderObject* obj) { return obj && obj->isBeforeOrAfterContent(); }
+ inline RenderObject* findBeforeContentRenderer() const
+ {
+ RenderObject* renderer = beforePseudoElementRenderer();
+ return isBeforeContent(renderer) ? renderer : 0;
+ }
+
+ inline RenderObject* findAfterContentRenderer() const
+ {
+ RenderObject* renderer = afterPseudoElementRenderer();
+ return isAfterContent(renderer) ? renderer : 0;
+ }
+
+ inline RenderObject* anonymousContainer(RenderObject* child)
+ {
+ RenderObject* container = child;
+ while (container->parent() != this)
+ container = container->parent();
+
+ ASSERT(container->isAnonymous());
+ return container;
+ }
+
bool childrenInline() const { return m_childrenInline; }
void setChildrenInline(bool b = true) { m_childrenInline = b; }
bool hasColumns() const { return m_hasColumns; }
« no previous file with comments | « Source/WebCore/rendering/RenderBlock.cpp ('k') | Source/WebCore/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698