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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 NotInsideFlowThread = 0, | 434 NotInsideFlowThread = 0, |
435 InsideOutOfFlowThread = 1, | 435 InsideOutOfFlowThread = 1, |
436 InsideInFlowThread = 2, | 436 InsideInFlowThread = 2, |
437 }; | 437 }; |
438 | 438 |
439 void setFlowThreadStateIncludingDescendants(FlowThreadState); | 439 void setFlowThreadStateIncludingDescendants(FlowThreadState); |
440 | 440 |
441 FlowThreadState flowThreadState() const { return m_bitfields.flowThreadState
(); } | 441 FlowThreadState flowThreadState() const { return m_bitfields.flowThreadState
(); } |
442 void setFlowThreadState(FlowThreadState state) { m_bitfields.setFlowThreadSt
ate(state); } | 442 void setFlowThreadState(FlowThreadState state) { m_bitfields.setFlowThreadSt
ate(state); } |
443 | 443 |
444 // FIXME: Until all SVG renders can be subclasses of RenderSVGModelObject we
have | 444 // FIXME: Until all SVG renders can be subclasses of LayoutSVGModelObject we
have |
445 // to add SVG renderer methods to LayoutObject with an ASSERT_NOT_REACHED()
default implementation. | 445 // to add SVG renderer methods to LayoutObject with an ASSERT_NOT_REACHED()
default implementation. |
446 bool isSVG() const { return isOfType(LayoutObjectSVG); } | 446 bool isSVG() const { return isOfType(LayoutObjectSVG); } |
447 bool isSVGRoot() const { return isOfType(LayoutObjectSVGRoot); } | 447 bool isSVGRoot() const { return isOfType(LayoutObjectSVGRoot); } |
448 bool isSVGContainer() const { return isOfType(LayoutObjectSVGContainer); } | 448 bool isSVGContainer() const { return isOfType(LayoutObjectSVGContainer); } |
449 bool isSVGTransformableContainer() const { return isOfType(LayoutObjectSVGTr
ansformableContainer); } | 449 bool isSVGTransformableContainer() const { return isOfType(LayoutObjectSVGTr
ansformableContainer); } |
450 bool isSVGViewportContainer() const { return isOfType(LayoutObjectSVGViewpor
tContainer); } | 450 bool isSVGViewportContainer() const { return isOfType(LayoutObjectSVGViewpor
tContainer); } |
451 bool isSVGGradientStop() const { return isOfType(LayoutObjectSVGGradientStop
); } | 451 bool isSVGGradientStop() const { return isOfType(LayoutObjectSVGGradientStop
); } |
452 bool isSVGHiddenContainer() const { return isOfType(LayoutObjectSVGHiddenCon
tainer); } | 452 bool isSVGHiddenContainer() const { return isOfType(LayoutObjectSVGHiddenCon
tainer); } |
453 bool isSVGShape() const { return isOfType(LayoutObjectSVGShape); } | 453 bool isSVGShape() const { return isOfType(LayoutObjectSVGShape); } |
454 bool isSVGText() const { return isOfType(LayoutObjectSVGText); } | 454 bool isSVGText() const { return isOfType(LayoutObjectSVGText); } |
455 bool isSVGTextPath() const { return isOfType(LayoutObjectSVGTextPath); } | 455 bool isSVGTextPath() const { return isOfType(LayoutObjectSVGTextPath); } |
456 bool isSVGInline() const { return isOfType(LayoutObjectSVGInline); } | 456 bool isSVGInline() const { return isOfType(LayoutObjectSVGInline); } |
457 bool isSVGInlineText() const { return isOfType(LayoutObjectSVGInlineText); } | 457 bool isSVGInlineText() const { return isOfType(LayoutObjectSVGInlineText); } |
458 bool isSVGImage() const { return isOfType(LayoutObjectSVGImage); } | 458 bool isSVGImage() const { return isOfType(LayoutObjectSVGImage); } |
459 bool isSVGForeignObject() const { return isOfType(LayoutObjectSVGForeignObje
ct); } | 459 bool isSVGForeignObject() const { return isOfType(LayoutObjectSVGForeignObje
ct); } |
460 bool isSVGResourceContainer() const { return isOfType(LayoutObjectSVGResourc
eContainer); } | 460 bool isSVGResourceContainer() const { return isOfType(LayoutObjectSVGResourc
eContainer); } |
461 bool isSVGResourceFilter() const { return isOfType(LayoutObjectSVGResourceFi
lter); } | 461 bool isSVGResourceFilter() const { return isOfType(LayoutObjectSVGResourceFi
lter); } |
462 bool isSVGResourceFilterPrimitive() const { return isOfType(LayoutObjectSVGR
esourceFilterPrimitive); } | 462 bool isSVGResourceFilterPrimitive() const { return isOfType(LayoutObjectSVGR
esourceFilterPrimitive); } |
463 | 463 |
464 // FIXME: Those belong into a SVG specific base-class for all renderers (see
above) | 464 // FIXME: Those belong into a SVG specific base-class for all renderers (see
above) |
465 // Unfortunately we don't have such a class yet, because it's not possible f
or all renderers | 465 // Unfortunately we don't have such a class yet, because it's not possible f
or all renderers |
466 // to inherit from RenderSVGObject -> LayoutObject (some need RenderBlock in
heritance for instance) | 466 // to inherit from LayoutSVGObject -> LayoutObject (some need RenderBlock in
heritance for instance) |
467 virtual void setNeedsTransformUpdate() { } | 467 virtual void setNeedsTransformUpdate() { } |
468 virtual void setNeedsBoundariesUpdate(); | 468 virtual void setNeedsBoundariesUpdate(); |
469 | 469 |
470 bool isBlendingAllowed() const { return !isSVG() || (isSVGContainer() && !is
SVGHiddenContainer()) || isSVGShape() || isSVGImage() || isSVGText(); } | 470 bool isBlendingAllowed() const { return !isSVG() || (isSVGContainer() && !is
SVGHiddenContainer()) || isSVGShape() || isSVGImage() || isSVGText(); } |
471 virtual bool hasNonIsolatedBlendingDescendants() const { return false; } | 471 virtual bool hasNonIsolatedBlendingDescendants() const { return false; } |
472 enum DescendantIsolationState { | 472 enum DescendantIsolationState { |
473 DescendantIsolationRequired, | 473 DescendantIsolationRequired, |
474 DescendantIsolationNeedsUpdate, | 474 DescendantIsolationNeedsUpdate, |
475 }; | 475 }; |
476 virtual void descendantIsolationRequirementsChanged(DescendantIsolationState
) { } | 476 virtual void descendantIsolationRequirementsChanged(DescendantIsolationState
) { } |
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1632 void showTree(const blink::LayoutObject*); | 1632 void showTree(const blink::LayoutObject*); |
1633 void showLineTree(const blink::LayoutObject*); | 1633 void showLineTree(const blink::LayoutObject*); |
1634 void showRenderTree(const blink::LayoutObject* object1); | 1634 void showRenderTree(const blink::LayoutObject* object1); |
1635 // We don't make object2 an optional parameter so that showRenderTree | 1635 // We don't make object2 an optional parameter so that showRenderTree |
1636 // can be called from gdb easily. | 1636 // can be called from gdb easily. |
1637 void showRenderTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1637 void showRenderTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
1638 | 1638 |
1639 #endif | 1639 #endif |
1640 | 1640 |
1641 #endif // LayoutObject_h | 1641 #endif // LayoutObject_h |
OLD | NEW |