| OLD | NEW |
| 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 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 virtual bool updateLogicalWidthAndColumnWidth() override; | 120 virtual bool updateLogicalWidthAndColumnWidth() override; |
| 121 | 121 |
| 122 void determineLogicalLeftPositionForChild(RenderBox* child); | 122 void determineLogicalLeftPositionForChild(RenderBox* child); |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 void layoutBlockFlow(bool relayoutChildren, SubtreeLayoutScope&); | 125 void layoutBlockFlow(bool relayoutChildren, SubtreeLayoutScope&); |
| 126 | 126 |
| 127 void layoutBlockChild(RenderBox* child); | 127 void layoutBlockChild(RenderBox* child); |
| 128 void adjustPositionedBlock(RenderBox* child); | 128 void adjustPositionedBlock(RenderBox* child); |
| 129 | 129 |
| 130 virtual void invalidatePaintForOverflow() override final; | |
| 131 | |
| 132 RootInlineBox* createRootInlineBox(); | 130 RootInlineBox* createRootInlineBox(); |
| 133 | 131 |
| 134 public: | 132 public: |
| 135 struct FloatWithRect { | 133 struct FloatWithRect { |
| 136 FloatWithRect(RenderBox* f) | 134 FloatWithRect(RenderBox* f) |
| 137 : object(f) | 135 : object(f) |
| 138 , rect(LayoutRect(f->x() - f->marginLeft(), f->y() - f->marginTop(),
f->width() + f->marginWidth(), f->height() + f->marginHeight())) | 136 , rect(LayoutRect(f->x() - f->marginLeft(), f->y() - f->marginTop(),
f->width() + f->marginWidth(), f->height() + f->marginHeight())) |
| 139 , everHadLayout(f->everHadLayout()) | 137 , everHadLayout(f->everHadLayout()) |
| 140 { | 138 { |
| 141 } | 139 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 152 protected: | 150 protected: |
| 153 friend class BreakingContext; // FIXME: It uses insertFloatingObject and pos
itionNewFloatOnLine, if we move those out from the private scope/add a helper to
LineBreaker, we can remove this friend | 151 friend class BreakingContext; // FIXME: It uses insertFloatingObject and pos
itionNewFloatOnLine, if we move those out from the private scope/add a helper to
LineBreaker, we can remove this friend |
| 154 friend class LineBreaker; | 152 friend class LineBreaker; |
| 155 }; | 153 }; |
| 156 | 154 |
| 157 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); | 155 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); |
| 158 | 156 |
| 159 } // namespace blink | 157 } // namespace blink |
| 160 | 158 |
| 161 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCKFLOW_H_ | 159 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBLOCKFLOW_H_ |
| OLD | NEW |