| OLD | NEW |
| 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, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class Path; | 53 class Path; |
| 54 class Position; | 54 class Position; |
| 55 class PseudoStyleRequest; | 55 class PseudoStyleRequest; |
| 56 class RenderBoxModelObject; | 56 class RenderBoxModelObject; |
| 57 class RenderInline; | 57 class RenderInline; |
| 58 class RenderBlock; | 58 class RenderBlock; |
| 59 class RenderFlowThread; | 59 class RenderFlowThread; |
| 60 class RenderGeometryMap; | 60 class RenderGeometryMap; |
| 61 class RenderLayer; | 61 class RenderLayer; |
| 62 class RenderLayerModelObject; | 62 class RenderLayerModelObject; |
| 63 class RenderNamedFlowThread; | |
| 64 class RenderSVGResourceContainer; | 63 class RenderSVGResourceContainer; |
| 65 class RenderTable; | 64 class RenderTable; |
| 66 class RenderTheme; | 65 class RenderTheme; |
| 67 class RenderView; | 66 class RenderView; |
| 68 class ResourceLoadPriorityOptimizer; | 67 class ResourceLoadPriorityOptimizer; |
| 69 class TransformState; | 68 class TransformState; |
| 70 | 69 |
| 71 struct PaintInfo; | 70 struct PaintInfo; |
| 72 | 71 |
| 73 enum CursorDirective { | 72 enum CursorDirective { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 203 |
| 205 // Function to return our enclosing flow thread if we are contained inside o
ne. This | 204 // Function to return our enclosing flow thread if we are contained inside o
ne. This |
| 206 // function follows the containing block chain. | 205 // function follows the containing block chain. |
| 207 RenderFlowThread* flowThreadContainingBlock() const | 206 RenderFlowThread* flowThreadContainingBlock() const |
| 208 { | 207 { |
| 209 if (flowThreadState() == NotInsideFlowThread) | 208 if (flowThreadState() == NotInsideFlowThread) |
| 210 return 0; | 209 return 0; |
| 211 return locateFlowThreadContainingBlock(); | 210 return locateFlowThreadContainingBlock(); |
| 212 } | 211 } |
| 213 | 212 |
| 214 RenderNamedFlowThread* renderNamedFlowThreadWrapper() const; | |
| 215 | |
| 216 virtual bool isEmpty() const { return firstChild() == 0; } | 213 virtual bool isEmpty() const { return firstChild() == 0; } |
| 217 | 214 |
| 218 #ifndef NDEBUG | 215 #ifndef NDEBUG |
| 219 void setHasAXObject(bool flag) { m_hasAXObject = flag; } | 216 void setHasAXObject(bool flag) { m_hasAXObject = flag; } |
| 220 bool hasAXObject() const { return m_hasAXObject; } | 217 bool hasAXObject() const { return m_hasAXObject; } |
| 221 | 218 |
| 222 // Helper class forbidding calls to setNeedsLayout() during its lifetime. | 219 // Helper class forbidding calls to setNeedsLayout() during its lifetime. |
| 223 class SetLayoutNeededForbiddenScope { | 220 class SetLayoutNeededForbiddenScope { |
| 224 public: | 221 public: |
| 225 explicit SetLayoutNeededForbiddenScope(RenderObject*); | 222 explicit SetLayoutNeededForbiddenScope(RenderObject*); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 virtual bool isMeter() const { return false; } | 335 virtual bool isMeter() const { return false; } |
| 339 virtual bool isProgress() const { return false; } | 336 virtual bool isProgress() const { return false; } |
| 340 virtual bool isRenderBlock() const { return false; } | 337 virtual bool isRenderBlock() const { return false; } |
| 341 virtual bool isRenderBlockFlow() const { return false; } | 338 virtual bool isRenderBlockFlow() const { return false; } |
| 342 virtual bool isRenderButton() const { return false; } | 339 virtual bool isRenderButton() const { return false; } |
| 343 virtual bool isRenderIFrame() const { return false; } | 340 virtual bool isRenderIFrame() const { return false; } |
| 344 virtual bool isRenderImage() const { return false; } | 341 virtual bool isRenderImage() const { return false; } |
| 345 virtual bool isRenderInline() const { return false; } | 342 virtual bool isRenderInline() const { return false; } |
| 346 virtual bool isRenderPart() const { return false; } | 343 virtual bool isRenderPart() const { return false; } |
| 347 virtual bool isRenderRegion() const { return false; } | 344 virtual bool isRenderRegion() const { return false; } |
| 348 virtual bool isRenderNamedFlowFragment() const { return false; } | |
| 349 virtual bool isRenderView() const { return false; } | 345 virtual bool isRenderView() const { return false; } |
| 350 virtual bool isReplica() const { return false; } | 346 virtual bool isReplica() const { return false; } |
| 351 | 347 |
| 352 virtual bool isRuby() const { return false; } | 348 virtual bool isRuby() const { return false; } |
| 353 virtual bool isRubyBase() const { return false; } | 349 virtual bool isRubyBase() const { return false; } |
| 354 virtual bool isRubyRun() const { return false; } | 350 virtual bool isRubyRun() const { return false; } |
| 355 virtual bool isRubyText() const { return false; } | 351 virtual bool isRubyText() const { return false; } |
| 356 | 352 |
| 357 virtual bool isSlider() const { return false; } | 353 virtual bool isSlider() const { return false; } |
| 358 virtual bool isSliderThumb() const { return false; } | 354 virtual bool isSliderThumb() const { return false; } |
| 359 virtual bool isTable() const { return false; } | 355 virtual bool isTable() const { return false; } |
| 360 virtual bool isTableCell() const { return false; } | 356 virtual bool isTableCell() const { return false; } |
| 361 virtual bool isRenderTableCol() const { return false; } | 357 virtual bool isRenderTableCol() const { return false; } |
| 362 virtual bool isTableCaption() const { return false; } | 358 virtual bool isTableCaption() const { return false; } |
| 363 virtual bool isTableRow() const { return false; } | 359 virtual bool isTableRow() const { return false; } |
| 364 virtual bool isTableSection() const { return false; } | 360 virtual bool isTableSection() const { return false; } |
| 365 virtual bool isTextControl() const { return false; } | 361 virtual bool isTextControl() const { return false; } |
| 366 virtual bool isTextArea() const { return false; } | 362 virtual bool isTextArea() const { return false; } |
| 367 virtual bool isTextField() const { return false; } | 363 virtual bool isTextField() const { return false; } |
| 368 virtual bool isVideo() const { return false; } | 364 virtual bool isVideo() const { return false; } |
| 369 virtual bool isWidget() const { return false; } | 365 virtual bool isWidget() const { return false; } |
| 370 virtual bool isCanvas() const { return false; } | 366 virtual bool isCanvas() const { return false; } |
| 371 virtual bool isRenderFullScreen() const { return false; } | 367 virtual bool isRenderFullScreen() const { return false; } |
| 372 virtual bool isRenderFullScreenPlaceholder() const { return false; } | 368 virtual bool isRenderFullScreenPlaceholder() const { return false; } |
| 373 | 369 |
| 374 virtual bool isRenderGrid() const { return false; } | 370 virtual bool isRenderGrid() const { return false; } |
| 375 | 371 |
| 376 virtual bool isRenderFlowThread() const { return false; } | 372 virtual bool isRenderFlowThread() const { return false; } |
| 377 virtual bool isRenderNamedFlowThread() const { return false; } | |
| 378 bool isInFlowRenderFlowThread() const { return isRenderFlowThread() && !isOu
tOfFlowPositioned(); } | 373 bool isInFlowRenderFlowThread() const { return isRenderFlowThread() && !isOu
tOfFlowPositioned(); } |
| 379 bool isOutOfFlowRenderFlowThread() const { return isRenderFlowThread() && is
OutOfFlowPositioned(); } | 374 bool isOutOfFlowRenderFlowThread() const { return isRenderFlowThread() && is
OutOfFlowPositioned(); } |
| 380 bool isRenderNamedFlowFragmentContainer() const; | |
| 381 | 375 |
| 382 virtual bool isRenderMultiColumnBlock() const { return false; } | 376 virtual bool isRenderMultiColumnBlock() const { return false; } |
| 383 virtual bool isRenderMultiColumnSet() const { return false; } | 377 virtual bool isRenderMultiColumnSet() const { return false; } |
| 384 | 378 |
| 385 virtual bool isRenderScrollbarPart() const { return false; } | 379 virtual bool isRenderScrollbarPart() const { return false; } |
| 386 | 380 |
| 387 bool isRoot() const { return document().documentElement() == m_node; } | 381 bool isRoot() const { return document().documentElement() == m_node; } |
| 388 bool isBody() const; | 382 bool isBody() const; |
| 389 bool isHR() const; | 383 bool isHR() const; |
| 390 bool isLegend() const; | 384 bool isLegend() const; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 Frame* frame() const { return document().frame(); } | 597 Frame* frame() const { return document().frame(); } |
| 604 | 598 |
| 605 bool hasOutlineAnnotation() const; | 599 bool hasOutlineAnnotation() const; |
| 606 bool hasOutline() const { return style()->hasOutline() || hasOutlineAnnotati
on(); } | 600 bool hasOutline() const { return style()->hasOutline() || hasOutlineAnnotati
on(); } |
| 607 | 601 |
| 608 // Returns the object containing this one. Can be different from parent for
positioned elements. | 602 // Returns the object containing this one. Can be different from parent for
positioned elements. |
| 609 // If repaintContainer and repaintContainerSkipped are not null, on return *
repaintContainerSkipped | 603 // If repaintContainer and repaintContainerSkipped are not null, on return *
repaintContainerSkipped |
| 610 // is true if the renderer returned is an ancestor of repaintContainer. | 604 // is true if the renderer returned is an ancestor of repaintContainer. |
| 611 RenderObject* container(const RenderLayerModelObject* repaintContainer = 0,
bool* repaintContainerSkipped = 0) const; | 605 RenderObject* container(const RenderLayerModelObject* repaintContainer = 0,
bool* repaintContainerSkipped = 0) const; |
| 612 | 606 |
| 613 virtual RenderObject* hoverAncestor() const; | 607 virtual RenderObject* hoverAncestor() const { return parent(); } |
| 614 | 608 |
| 615 Element* offsetParent() const; | 609 Element* offsetParent() const; |
| 616 | 610 |
| 617 void markContainingBlocksForLayout(bool scheduleRelayout = true, RenderObjec
t* newRoot = 0, SubtreeLayoutScope* = 0); | 611 void markContainingBlocksForLayout(bool scheduleRelayout = true, RenderObjec
t* newRoot = 0, SubtreeLayoutScope* = 0); |
| 618 void setNeedsLayout(MarkingBehavior = MarkContainingBlockChain, SubtreeLayou
tScope* = 0); | 612 void setNeedsLayout(MarkingBehavior = MarkContainingBlockChain, SubtreeLayou
tScope* = 0); |
| 619 void clearNeedsLayout(); | 613 void clearNeedsLayout(); |
| 620 void setChildNeedsLayout(MarkingBehavior = MarkContainingBlockChain, Subtree
LayoutScope* = 0); | 614 void setChildNeedsLayout(MarkingBehavior = MarkContainingBlockChain, Subtree
LayoutScope* = 0); |
| 621 void setNeedsPositionedMovementLayout(); | 615 void setNeedsPositionedMovementLayout(); |
| 622 void setNeedsSimplifiedNormalFlowLayout(); | 616 void setNeedsSimplifiedNormalFlowLayout(); |
| 623 void setPreferredLogicalWidthsDirty(MarkingBehavior = MarkContainingBlockCha
in); | 617 void setPreferredLogicalWidthsDirty(MarkingBehavior = MarkContainingBlockCha
in); |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 void showTree(const WebCore::RenderObject*); | 1402 void showTree(const WebCore::RenderObject*); |
| 1409 void showLineTree(const WebCore::RenderObject*); | 1403 void showLineTree(const WebCore::RenderObject*); |
| 1410 void showRenderTree(const WebCore::RenderObject* object1); | 1404 void showRenderTree(const WebCore::RenderObject* object1); |
| 1411 // We don't make object2 an optional parameter so that showRenderTree | 1405 // We don't make object2 an optional parameter so that showRenderTree |
| 1412 // can be called from gdb easily. | 1406 // can be called from gdb easily. |
| 1413 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1407 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
| 1414 | 1408 |
| 1415 #endif | 1409 #endif |
| 1416 | 1410 |
| 1417 #endif // RenderObject_h | 1411 #endif // RenderObject_h |
| OLD | NEW |