| 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 24 matching lines...) Expand all Loading... |
| 35 #include "sky/engine/core/rendering/HitTestRequest.h" | 35 #include "sky/engine/core/rendering/HitTestRequest.h" |
| 36 #include "sky/engine/core/rendering/PaintInvalidationState.h" | 36 #include "sky/engine/core/rendering/PaintInvalidationState.h" |
| 37 #include "sky/engine/core/rendering/PaintPhase.h" | 37 #include "sky/engine/core/rendering/PaintPhase.h" |
| 38 #include "sky/engine/core/rendering/RenderObjectChildList.h" | 38 #include "sky/engine/core/rendering/RenderObjectChildList.h" |
| 39 #include "sky/engine/core/rendering/ScrollAlignment.h" | 39 #include "sky/engine/core/rendering/ScrollAlignment.h" |
| 40 #include "sky/engine/core/rendering/SubtreeLayoutScope.h" | 40 #include "sky/engine/core/rendering/SubtreeLayoutScope.h" |
| 41 #include "sky/engine/core/rendering/style/RenderStyle.h" | 41 #include "sky/engine/core/rendering/style/RenderStyle.h" |
| 42 #include "sky/engine/core/rendering/style/StyleInheritedData.h" | 42 #include "sky/engine/core/rendering/style/StyleInheritedData.h" |
| 43 #include "sky/engine/platform/geometry/FloatQuad.h" | 43 #include "sky/engine/platform/geometry/FloatQuad.h" |
| 44 #include "sky/engine/platform/geometry/LayoutRect.h" | 44 #include "sky/engine/platform/geometry/LayoutRect.h" |
| 45 #include "sky/engine/platform/graphics/CompositingReasons.h" | |
| 46 #include "sky/engine/platform/transforms/TransformationMatrix.h" | 45 #include "sky/engine/platform/transforms/TransformationMatrix.h" |
| 47 | 46 |
| 48 namespace blink { | 47 namespace blink { |
| 49 | 48 |
| 50 class AffineTransform; | 49 class AffineTransform; |
| 51 class Cursor; | 50 class Cursor; |
| 52 class Document; | 51 class Document; |
| 53 class HitTestLocation; | 52 class HitTestLocation; |
| 54 class HitTestResult; | 53 class HitTestResult; |
| 55 class InlineBox; | 54 class InlineBox; |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 // Subclasses must reimplement this method to compute the size and position | 513 // Subclasses must reimplement this method to compute the size and position |
| 515 // of this object and all its descendants. | 514 // of this object and all its descendants. |
| 516 virtual void layout() = 0; | 515 virtual void layout() = 0; |
| 517 | 516 |
| 518 /* This function performs a layout only if one is needed. */ | 517 /* This function performs a layout only if one is needed. */ |
| 519 void layoutIfNeeded() { if (needsLayout()) layout(); } | 518 void layoutIfNeeded() { if (needsLayout()) layout(); } |
| 520 | 519 |
| 521 void forceLayout(); | 520 void forceLayout(); |
| 522 void forceChildLayout(); | 521 void forceChildLayout(); |
| 523 | 522 |
| 524 virtual CompositingReasons additionalCompositingReasons() const; | |
| 525 | |
| 526 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l
ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes
tAll); | 523 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l
ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes
tAll); |
| 527 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); | 524 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); |
| 528 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion); | 525 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion); |
| 529 | 526 |
| 530 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); | 527 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); |
| 531 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); | 528 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); |
| 532 PositionWithAffinity createPositionWithAffinity(const Position&); | 529 PositionWithAffinity createPositionWithAffinity(const Position&); |
| 533 | 530 |
| 534 virtual void dirtyLinesFromChangedChild(RenderObject*); | 531 virtual void dirtyLinesFromChangedChild(RenderObject*); |
| 535 | 532 |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 void showTree(const blink::RenderObject*); | 1183 void showTree(const blink::RenderObject*); |
| 1187 void showLineTree(const blink::RenderObject*); | 1184 void showLineTree(const blink::RenderObject*); |
| 1188 void showRenderTree(const blink::RenderObject* object1); | 1185 void showRenderTree(const blink::RenderObject* object1); |
| 1189 // We don't make object2 an optional parameter so that showRenderTree | 1186 // We don't make object2 an optional parameter so that showRenderTree |
| 1190 // can be called from gdb easily. | 1187 // can be called from gdb easily. |
| 1191 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1188 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1192 | 1189 |
| 1193 #endif | 1190 #endif |
| 1194 | 1191 |
| 1195 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ | 1192 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ |
| OLD | NEW |