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

Side by Side Diff: Source/core/rendering/RenderMultiColumnSet.cpp

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 { 44 {
45 Document& document = flowThread->document(); 45 Document& document = flowThread->document();
46 RenderMultiColumnSet* renderer = new RenderMultiColumnSet(flowThread); 46 RenderMultiColumnSet* renderer = new RenderMultiColumnSet(flowThread);
47 renderer->setDocumentForAnonymous(&document); 47 renderer->setDocumentForAnonymous(&document);
48 renderer->setStyle(RenderStyle::createAnonymousStyleWithDisplay(parentStyle, BLOCK)); 48 renderer->setStyle(RenderStyle::createAnonymousStyleWithDisplay(parentStyle, BLOCK));
49 return renderer; 49 return renderer;
50 } 50 }
51 51
52 RenderMultiColumnSet* RenderMultiColumnSet::nextSiblingMultiColumnSet() const 52 RenderMultiColumnSet* RenderMultiColumnSet::nextSiblingMultiColumnSet() const
53 { 53 {
54 for (RenderObject* sibling = nextSibling(); sibling; sibling = sibling->next Sibling()) { 54 for (LayoutObject* sibling = nextSibling(); sibling; sibling = sibling->next Sibling()) {
55 if (sibling->isRenderMultiColumnSet()) 55 if (sibling->isRenderMultiColumnSet())
56 return toRenderMultiColumnSet(sibling); 56 return toRenderMultiColumnSet(sibling);
57 } 57 }
58 return 0; 58 return 0;
59 } 59 }
60 60
61 RenderMultiColumnSet* RenderMultiColumnSet::previousSiblingMultiColumnSet() cons t 61 RenderMultiColumnSet* RenderMultiColumnSet::previousSiblingMultiColumnSet() cons t
62 { 62 {
63 for (RenderObject* sibling = previousSibling(); sibling; sibling = sibling-> previousSibling()) { 63 for (LayoutObject* sibling = previousSibling(); sibling; sibling = sibling-> previousSibling()) {
64 if (sibling->isRenderMultiColumnSet()) 64 if (sibling->isRenderMultiColumnSet())
65 return toRenderMultiColumnSet(sibling); 65 return toRenderMultiColumnSet(sibling);
66 } 66 }
67 return 0; 67 return 0;
68 } 68 }
69 69
70 void RenderMultiColumnSet::setLogicalTopInFlowThread(LayoutUnit logicalTop) 70 void RenderMultiColumnSet::setLogicalTopInFlowThread(LayoutUnit logicalTop)
71 { 71 {
72 LayoutRect rect = flowThreadPortionRect(); 72 LayoutRect rect = flowThreadPortionRect();
73 if (isHorizontalWritingMode()) 73 if (isHorizontalWritingMode())
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 624
625 void RenderMultiColumnSet::detachRegion() 625 void RenderMultiColumnSet::detachRegion()
626 { 626 {
627 if (m_flowThread) { 627 if (m_flowThread) {
628 m_flowThread->removeRegionFromThread(this); 628 m_flowThread->removeRegionFromThread(this);
629 m_flowThread = 0; 629 m_flowThread = 0;
630 } 630 }
631 } 631 }
632 632
633 } 633 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMultiColumnSet.h ('k') | Source/core/rendering/RenderMultiColumnSpannerPlaceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698