Chromium Code Reviews| 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 #include "platform/transforms/TransformationMatrix.h" | 53 #include "platform/transforms/TransformationMatrix.h" |
| 54 | 54 |
| 55 namespace blink { | 55 namespace blink { |
| 56 | 56 |
| 57 class AffineTransform; | 57 class AffineTransform; |
| 58 class Cursor; | 58 class Cursor; |
| 59 class Document; | 59 class Document; |
| 60 class HitTestLocation; | 60 class HitTestLocation; |
| 61 class HitTestResult; | 61 class HitTestResult; |
| 62 class InlineBox; | 62 class InlineBox; |
| 63 class PseudoStyleRequest; | |
| 64 class LayoutBoxModelObject; | 63 class LayoutBoxModelObject; |
| 65 class LayoutBlock; | 64 class LayoutBlock; |
| 66 class LayoutFlowThread; | 65 class LayoutFlowThread; |
| 67 class LayoutGeometryMap; | 66 class LayoutGeometryMap; |
| 68 class PaintLayer; | |
| 69 class LayoutMultiColumnSpannerPlaceholder; | 67 class LayoutMultiColumnSpannerPlaceholder; |
| 70 class LayoutView; | 68 class LayoutView; |
| 69 class ObjectPaintProperties; | |
| 70 class PaintLayer; | |
| 71 class PseudoStyleRequest; | |
| 71 class TransformState; | 72 class TransformState; |
| 72 | 73 |
| 73 struct PaintInfo; | 74 struct PaintInfo; |
| 74 | 75 |
| 75 enum CursorDirective { | 76 enum CursorDirective { |
| 76 SetCursorBasedOnStyle, | 77 SetCursorBasedOnStyle, |
| 77 SetCursor, | 78 SetCursor, |
| 78 DoNotSetCursor | 79 DoNotSetCursor |
| 79 }; | 80 }; |
| 80 | 81 |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 346 // TODO(jchaffraix): |newChild| cannot be nullptr and should be a reference. | 347 // TODO(jchaffraix): |newChild| cannot be nullptr and should be a reference. |
| 347 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nu llptr); | 348 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nu llptr); |
| 348 virtual void addChildIgnoringContinuation(LayoutObject* newChild, LayoutObje ct* beforeChild = nullptr) { return addChild(newChild, beforeChild); } | 349 virtual void addChildIgnoringContinuation(LayoutObject* newChild, LayoutObje ct* beforeChild = nullptr) { return addChild(newChild, beforeChild); } |
| 349 virtual void removeChild(LayoutObject*); | 350 virtual void removeChild(LayoutObject*); |
| 350 virtual bool createsAnonymousWrapper() const { return false; } | 351 virtual bool createsAnonymousWrapper() const { return false; } |
| 351 ////////////////////////////////////////// | 352 ////////////////////////////////////////// |
| 352 | 353 |
| 353 // Sets the parent of this object but doesn't add it as a child of the paren t. | 354 // Sets the parent of this object but doesn't add it as a child of the paren t. |
| 354 void setDangerousOneWayParent(LayoutObject*); | 355 void setDangerousOneWayParent(LayoutObject*); |
| 355 | 356 |
| 357 // For SPv2 only. These are implemented as a global hash map temporarily, | |
|
pdr.
2015/10/20 22:02:30
This is useful but more of an implementation detai
trchen
2015/10/21 06:16:19
Done.
| |
| 358 // to avoid memory regression during the transition towards SPv2. | |
| 359 ObjectPaintProperties* objectPaintProperties() const; | |
| 360 ObjectPaintProperties& ensureObjectPaintProperties(); | |
| 361 void clearObjectPaintProperties(); | |
| 362 | |
| 356 private: | 363 private: |
| 357 ////////////////////////////////////////// | 364 ////////////////////////////////////////// |
| 358 // Helper functions. Dangerous to use! | 365 // Helper functions. Dangerous to use! |
| 359 void setPreviousSibling(LayoutObject* previous) { m_previous = previous; } | 366 void setPreviousSibling(LayoutObject* previous) { m_previous = previous; } |
| 360 void setNextSibling(LayoutObject* next) { m_next = next; } | 367 void setNextSibling(LayoutObject* next) { m_next = next; } |
| 361 void setParent(LayoutObject* parent) | 368 void setParent(LayoutObject* parent) |
| 362 { | 369 { |
| 363 m_parent = parent; | 370 m_parent = parent; |
| 364 | 371 |
| 365 // Only update if our flow thread state is different from our new parent and if we're not a LayoutFlowThread. | 372 // Only update if our flow thread state is different from our new parent and if we're not a LayoutFlowThread. |
| (...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2001 void showTree(const blink::LayoutObject*); | 2008 void showTree(const blink::LayoutObject*); |
| 2002 void showLineTree(const blink::LayoutObject*); | 2009 void showLineTree(const blink::LayoutObject*); |
| 2003 void showLayoutTree(const blink::LayoutObject* object1); | 2010 void showLayoutTree(const blink::LayoutObject* object1); |
| 2004 // We don't make object2 an optional parameter so that showLayoutTree | 2011 // We don't make object2 an optional parameter so that showLayoutTree |
| 2005 // can be called from gdb easily. | 2012 // can be called from gdb easily. |
| 2006 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); | 2013 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); |
| 2007 | 2014 |
| 2008 #endif | 2015 #endif |
| 2009 | 2016 |
| 2010 #endif // LayoutObject_h | 2017 #endif // LayoutObject_h |
| OLD | NEW |