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

Side by Side Diff: Source/WebCore/rendering/RenderObject.h

Issue 9568036: Merge 108606 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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 | « Source/WebCore/rendering/RenderBlock.cpp ('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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 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) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 bool isTablePart() const { return isTableCell() || isTableCol() || isTableCa ption() || isTableRow() || isTableSection(); } 358 bool isTablePart() const { return isTableCell() || isTableCol() || isTableCa ption() || isTableRow() || isTableSection(); }
359 359
360 inline bool isBeforeContent() const; 360 inline bool isBeforeContent() const;
361 inline bool isAfterContent() const; 361 inline bool isAfterContent() const;
362 inline bool isBeforeOrAfterContent() const; 362 inline bool isBeforeOrAfterContent() const;
363 static inline bool isBeforeContent(const RenderObject* obj) { return obj && obj->isBeforeContent(); } 363 static inline bool isBeforeContent(const RenderObject* obj) { return obj && obj->isBeforeContent(); }
364 static inline bool isAfterContent(const RenderObject* obj) { return obj && o bj->isAfterContent(); } 364 static inline bool isAfterContent(const RenderObject* obj) { return obj && o bj->isAfterContent(); }
365 static inline bool isBeforeOrAfterContent(const RenderObject* obj) { return obj && obj->isBeforeOrAfterContent(); } 365 static inline bool isBeforeOrAfterContent(const RenderObject* obj) { return obj && obj->isBeforeOrAfterContent(); }
366 366
367 inline RenderObject* anonymousContainer(RenderObject* child)
368 {
369 RenderObject* container = child;
370 while (container->parent() != this)
371 container = container->parent();
372
373 ASSERT(container->isAnonymous());
374 return container;
375 }
376
377 bool hasCounterNodeMap() const { return m_bitfields.hasCounterNodeMap(); } 367 bool hasCounterNodeMap() const { return m_bitfields.hasCounterNodeMap(); }
378 void setHasCounterNodeMap(bool hasCounterNodeMap) { m_bitfields.setHasCounte rNodeMap(hasCounterNodeMap); } 368 void setHasCounterNodeMap(bool hasCounterNodeMap) { m_bitfields.setHasCounte rNodeMap(hasCounterNodeMap); }
379 bool everHadLayout() const { return m_bitfields.everHadLayout(); } 369 bool everHadLayout() const { return m_bitfields.everHadLayout(); }
380 370
381 bool childrenInline() const { return m_bitfields.childrenInline(); } 371 bool childrenInline() const { return m_bitfields.childrenInline(); }
382 void setChildrenInline(bool b) { m_bitfields.setChildrenInline(b); } 372 void setChildrenInline(bool b) { m_bitfields.setChildrenInline(b); }
383 bool hasColumns() const { return m_bitfields.hasColumns(); } 373 bool hasColumns() const { return m_bitfields.hasColumns(); }
384 void setHasColumns(bool b = true) { m_bitfields.setHasColumns(b); } 374 void setHasColumns(bool b = true) { m_bitfields.setHasColumns(b); }
385 375
386 bool inRenderFlowThread() const { return m_bitfields.inRenderFlowThread(); } 376 bool inRenderFlowThread() const { return m_bitfields.inRenderFlowThread(); }
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 // Outside the WebCore namespace for ease of invocation from gdb. 1150 // Outside the WebCore namespace for ease of invocation from gdb.
1161 void showTree(const WebCore::RenderObject*); 1151 void showTree(const WebCore::RenderObject*);
1162 void showLineTree(const WebCore::RenderObject*); 1152 void showLineTree(const WebCore::RenderObject*);
1163 void showRenderTree(const WebCore::RenderObject* object1); 1153 void showRenderTree(const WebCore::RenderObject* object1);
1164 // We don't make object2 an optional parameter so that showRenderTree 1154 // We don't make object2 an optional parameter so that showRenderTree
1165 // can be called from gdb easily. 1155 // can be called from gdb easily.
1166 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1156 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1167 #endif 1157 #endif
1168 1158
1169 #endif // RenderObject_h 1159 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderBlock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698