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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 if (oldWidth != width()) | 297 if (oldWidth != width()) |
298 return; | 298 return; |
299 calcHeight(); | 299 calcHeight(); |
300 setNeedsLayout(false); | 300 setNeedsLayout(false); |
301 } | 301 } |
302 | 302 |
303 IntRect maskClipRect(); | 303 IntRect maskClipRect(); |
304 | 304 |
305 virtual void childBecameNonInline(RenderObject* /*child*/) { } | 305 virtual void childBecameNonInline(RenderObject* /*child*/) { } |
306 | 306 |
| 307 virtual VisiblePosition positionForCoordinates(int x, int y); |
| 308 |
307 #if ENABLE(SVG) | 309 #if ENABLE(SVG) |
308 virtual TransformationMatrix localTransform() const; | 310 virtual TransformationMatrix localTransform() const; |
309 #endif | 311 #endif |
310 | 312 |
311 protected: | 313 protected: |
312 virtual void styleWillChange(RenderStyle::Diff, const RenderStyle* newStyle)
; | 314 virtual void styleWillChange(RenderStyle::Diff, const RenderStyle* newStyle)
; |
313 virtual void styleDidChange(RenderStyle::Diff, const RenderStyle* oldStyle); | 315 virtual void styleDidChange(RenderStyle::Diff, const RenderStyle* oldStyle); |
314 | 316 |
315 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, int cl
ipY, int clipHeight, int tx, int ty, int width, int height, CompositeOperator =
CompositeSourceOver); | 317 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, int cl
ipY, int clipHeight, int tx, int ty, int width, int height, CompositeOperator =
CompositeSourceOver); |
316 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer*, int c
lipY, int clipHeight, int tx, int ty, int width, int height, CompositeOperator =
CompositeSourceOver); | 318 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer*, int c
lipY, int clipHeight, int tx, int ty, int width, int height, CompositeOperator =
CompositeSourceOver); |
(...skipping 30 matching lines...) Expand all Loading... |
347 int containerHeight, int bordersPlusPadding, | 349 int containerHeight, int bordersPlusPadding, |
348 Length top, Length bottom, Length marginTop,
Length marginBottom, | 350 Length top, Length bottom, Length marginTop,
Length marginBottom, |
349 int& heightValue, int& marginTopValue, int&
marginBottomValue, int& yPos); | 351 int& heightValue, int& marginTopValue, int&
marginBottomValue, int& yPos); |
350 | 352 |
351 void calcAbsoluteVerticalReplaced(); | 353 void calcAbsoluteVerticalReplaced(); |
352 void calcAbsoluteHorizontalReplaced(); | 354 void calcAbsoluteHorizontalReplaced(); |
353 | 355 |
354 // This function calculates the minimum and maximum preferred widths for an
object. | 356 // This function calculates the minimum and maximum preferred widths for an
object. |
355 // These values are used in shrink-to-fit layout systems. | 357 // These values are used in shrink-to-fit layout systems. |
356 // These include tables, positioned objects, floats and flexible boxes. | 358 // These include tables, positioned objects, floats and flexible boxes. |
357 virtual void calcPrefWidths() = 0; | 359 virtual void calcPrefWidths() { setPrefWidthsDirty(false); } |
| 360 |
| 361 protected: |
| 362 bool isAfterContent(RenderObject* child) const; |
358 | 363 |
359 private: | 364 private: |
360 // The width/height of the contents + borders + padding. The x/y location i
s relative to our container (which is not always our parent). | 365 // The width/height of the contents + borders + padding. The x/y location i
s relative to our container (which is not always our parent). |
361 IntRect m_frameRect; | 366 IntRect m_frameRect; |
362 | 367 |
363 protected: | 368 protected: |
364 int m_marginLeft; | 369 int m_marginLeft; |
365 int m_marginRight; | 370 int m_marginRight; |
366 int m_marginTop; | 371 int m_marginTop; |
367 int m_marginBottom; | 372 int m_marginBottom; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 } | 425 } |
421 | 426 |
422 inline RenderBox* RenderBox::lastChildBox() const | 427 inline RenderBox* RenderBox::lastChildBox() const |
423 { | 428 { |
424 return toRenderBox(lastChild()); | 429 return toRenderBox(lastChild()); |
425 } | 430 } |
426 | 431 |
427 } // namespace WebCore | 432 } // namespace WebCore |
428 | 433 |
429 #endif // RenderBox_h | 434 #endif // RenderBox_h |
OLD | NEW |