| 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 20 matching lines...) Expand all Loading... |
| 31 #include "sky/engine/core/dom/Element.h" | 31 #include "sky/engine/core/dom/Element.h" |
| 32 #include "sky/engine/core/editing/TextAffinity.h" | 32 #include "sky/engine/core/editing/TextAffinity.h" |
| 33 #include "sky/engine/core/fetch/ImageResourceClient.h" | 33 #include "sky/engine/core/fetch/ImageResourceClient.h" |
| 34 #include "sky/engine/core/html/HTMLElement.h" | 34 #include "sky/engine/core/html/HTMLElement.h" |
| 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/compositing/CompositingState.h" | |
| 42 #include "sky/engine/core/rendering/style/RenderStyle.h" | 41 #include "sky/engine/core/rendering/style/RenderStyle.h" |
| 43 #include "sky/engine/core/rendering/style/StyleInheritedData.h" | 42 #include "sky/engine/core/rendering/style/StyleInheritedData.h" |
| 44 #include "sky/engine/platform/geometry/FloatQuad.h" | 43 #include "sky/engine/platform/geometry/FloatQuad.h" |
| 45 #include "sky/engine/platform/geometry/LayoutRect.h" | 44 #include "sky/engine/platform/geometry/LayoutRect.h" |
| 46 #include "sky/engine/platform/graphics/CompositingReasons.h" | 45 #include "sky/engine/platform/graphics/CompositingReasons.h" |
| 47 #include "sky/engine/platform/transforms/TransformationMatrix.h" | 46 #include "sky/engine/platform/transforms/TransformationMatrix.h" |
| 48 | 47 |
| 49 namespace blink { | 48 namespace blink { |
| 50 | 49 |
| 51 class AffineTransform; | 50 class AffineTransform; |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 // Subclasses must reimplement this method to compute the size and position | 514 // Subclasses must reimplement this method to compute the size and position |
| 516 // of this object and all its descendants. | 515 // of this object and all its descendants. |
| 517 virtual void layout() = 0; | 516 virtual void layout() = 0; |
| 518 | 517 |
| 519 /* This function performs a layout only if one is needed. */ | 518 /* This function performs a layout only if one is needed. */ |
| 520 void layoutIfNeeded() { if (needsLayout()) layout(); } | 519 void layoutIfNeeded() { if (needsLayout()) layout(); } |
| 521 | 520 |
| 522 void forceLayout(); | 521 void forceLayout(); |
| 523 void forceChildLayout(); | 522 void forceChildLayout(); |
| 524 | 523 |
| 525 CompositingState compositingState() const; | |
| 526 virtual CompositingReasons additionalCompositingReasons() const; | 524 virtual CompositingReasons additionalCompositingReasons() const; |
| 527 | 525 |
| 528 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l
ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes
tAll); | 526 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l
ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes
tAll); |
| 529 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); | 527 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); |
| 530 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion); | 528 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion); |
| 531 | 529 |
| 532 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); | 530 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); |
| 533 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); | 531 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); |
| 534 PositionWithAffinity createPositionWithAffinity(const Position&); | 532 PositionWithAffinity createPositionWithAffinity(const Position&); |
| 535 | 533 |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 void showTree(const blink::RenderObject*); | 1191 void showTree(const blink::RenderObject*); |
| 1194 void showLineTree(const blink::RenderObject*); | 1192 void showLineTree(const blink::RenderObject*); |
| 1195 void showRenderTree(const blink::RenderObject* object1); | 1193 void showRenderTree(const blink::RenderObject* object1); |
| 1196 // We don't make object2 an optional parameter so that showRenderTree | 1194 // We don't make object2 an optional parameter so that showRenderTree |
| 1197 // can be called from gdb easily. | 1195 // can be called from gdb easily. |
| 1198 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1196 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1199 | 1197 |
| 1200 #endif | 1198 #endif |
| 1201 | 1199 |
| 1202 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ | 1200 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ |
| OLD | NEW |