| 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 26 matching lines...) Expand all Loading... |
| 37 #include "core/rendering/SubtreeLayoutScope.h" | 37 #include "core/rendering/SubtreeLayoutScope.h" |
| 38 #include "core/rendering/style/RenderStyle.h" | 38 #include "core/rendering/style/RenderStyle.h" |
| 39 #include "core/rendering/style/StyleInheritedData.h" | 39 #include "core/rendering/style/StyleInheritedData.h" |
| 40 #include "platform/geometry/FloatQuad.h" | 40 #include "platform/geometry/FloatQuad.h" |
| 41 #include "platform/geometry/LayoutRect.h" | 41 #include "platform/geometry/LayoutRect.h" |
| 42 #include "platform/transforms/TransformationMatrix.h" | 42 #include "platform/transforms/TransformationMatrix.h" |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| 45 | 45 |
| 46 class AffineTransform; | 46 class AffineTransform; |
| 47 class AnimationController; | |
| 48 class Cursor; | 47 class Cursor; |
| 49 class Document; | 48 class Document; |
| 50 class HitTestLocation; | 49 class HitTestLocation; |
| 51 class HitTestResult; | 50 class HitTestResult; |
| 52 class InlineBox; | 51 class InlineBox; |
| 53 class InlineFlowBox; | 52 class InlineFlowBox; |
| 54 class Path; | 53 class Path; |
| 55 class Position; | 54 class Position; |
| 56 class PseudoStyleRequest; | 55 class PseudoStyleRequest; |
| 57 class RenderBoxModelObject; | 56 class RenderBoxModelObject; |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l
ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes
tAll); | 693 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l
ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes
tAll); |
| 695 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); | 694 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); |
| 696 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion); | 695 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion); |
| 697 | 696 |
| 698 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); | 697 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); |
| 699 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); | 698 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); |
| 700 PositionWithAffinity createPositionWithAffinity(const Position&); | 699 PositionWithAffinity createPositionWithAffinity(const Position&); |
| 701 | 700 |
| 702 virtual void dirtyLinesFromChangedChild(RenderObject*); | 701 virtual void dirtyLinesFromChangedChild(RenderObject*); |
| 703 | 702 |
| 704 // Called to update a style that is allowed to trigger animations. | |
| 705 // FIXME: Right now this will typically be called only when updating happens
from the DOM on explicit elements. | |
| 706 // We don't yet handle generated content animation such as first-letter or b
efore/after (we'll worry about this later). | |
| 707 void setAnimatableStyle(PassRefPtr<RenderStyle>); | |
| 708 | |
| 709 // Set the style of the object and update the state of the object accordingl
y. | 703 // Set the style of the object and update the state of the object accordingl
y. |
| 710 void setStyle(PassRefPtr<RenderStyle>); | 704 void setStyle(PassRefPtr<RenderStyle>); |
| 711 | 705 |
| 712 // Set the style of the object if it's generated content. | 706 // Set the style of the object if it's generated content. |
| 713 void setPseudoStyle(PassRefPtr<RenderStyle>); | 707 void setPseudoStyle(PassRefPtr<RenderStyle>); |
| 714 | 708 |
| 715 // Updates only the local style ptr of the object. Does not update the stat
e of the object, | 709 // Updates only the local style ptr of the object. Does not update the stat
e of the object, |
| 716 // and so only should be called when the style is known not to have changed
(or from setStyle). | 710 // and so only should be called when the style is known not to have changed
(or from setStyle). |
| 717 void setStyleInternal(PassRefPtr<RenderStyle> style) { m_style = style; } | 711 void setStyleInternal(PassRefPtr<RenderStyle> style) { m_style = style; } |
| 718 | 712 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 virtual int nextOffset(int current) const; | 921 virtual int nextOffset(int current) const; |
| 928 | 922 |
| 929 virtual void imageChanged(ImageResource*, const IntRect* = 0) OVERRIDE FINAL
; | 923 virtual void imageChanged(ImageResource*, const IntRect* = 0) OVERRIDE FINAL
; |
| 930 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { } | 924 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) { } |
| 931 virtual bool willRenderImage(ImageResource*) OVERRIDE FINAL; | 925 virtual bool willRenderImage(ImageResource*) OVERRIDE FINAL; |
| 932 | 926 |
| 933 void selectionStartEnd(int& spos, int& epos) const; | 927 void selectionStartEnd(int& spos, int& epos) const; |
| 934 | 928 |
| 935 void remove() { if (parent()) parent()->removeChild(this); } | 929 void remove() { if (parent()) parent()->removeChild(this); } |
| 936 | 930 |
| 937 AnimationController& animation() const; | |
| 938 | |
| 939 bool isInert() const; | 931 bool isInert() const; |
| 940 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s
tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style()
->pointerEvents() != PE_NONE) && !isInert(); } | 932 bool visibleToHitTestRequest(const HitTestRequest& request) const { return s
tyle()->visibility() == VISIBLE && (request.ignorePointerEventsNone() || style()
->pointerEvents() != PE_NONE) && !isInert(); } |
| 941 bool visibleToHitTesting() const { return style()->visibility() == VISIBLE &
& style()->pointerEvents() != PE_NONE && !isInert(); } | 933 bool visibleToHitTesting() const { return style()->visibility() == VISIBLE &
& style()->pointerEvents() != PE_NONE && !isInert(); } |
| 942 | 934 |
| 943 // Map points and quads through elements, potentially via 3d transforms. You
should never need to call these directly; use | 935 // Map points and quads through elements, potentially via 3d transforms. You
should never need to call these directly; use |
| 944 // localToAbsolute/absoluteToLocal methods instead. | 936 // localToAbsolute/absoluteToLocal methods instead. |
| 945 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const; | 937 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const; |
| 946 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst; | 938 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst; |
| 947 | 939 |
| 948 // Pushes state onto RenderGeometryMap about how to map coordinates from thi
s renderer to its container, or ancestorToStopAt (whichever is encountered first
). | 940 // Pushes state onto RenderGeometryMap about how to map coordinates from thi
s renderer to its container, or ancestorToStopAt (whichever is encountered first
). |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 void showTree(const WebCore::RenderObject*); | 1409 void showTree(const WebCore::RenderObject*); |
| 1418 void showLineTree(const WebCore::RenderObject*); | 1410 void showLineTree(const WebCore::RenderObject*); |
| 1419 void showRenderTree(const WebCore::RenderObject* object1); | 1411 void showRenderTree(const WebCore::RenderObject* object1); |
| 1420 // We don't make object2 an optional parameter so that showRenderTree | 1412 // We don't make object2 an optional parameter so that showRenderTree |
| 1421 // can be called from gdb easily. | 1413 // can be called from gdb easily. |
| 1422 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1414 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
| 1423 | 1415 |
| 1424 #endif | 1416 #endif |
| 1425 | 1417 |
| 1426 #endif // RenderObject_h | 1418 #endif // RenderObject_h |
| OLD | NEW |