Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 1756763002: 2016-03-02T18:53:01 LayoutPosition Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-04-25T19:02:18 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 3636 matching lines...) Expand 10 before | Expand all | Expand 10 after
3647 objectPaintPropertiesMap().set(this, ObjectPaintProperties::create()); 3647 objectPaintPropertiesMap().set(this, ObjectPaintProperties::create());
3648 return *objectPaintPropertiesMap().get(this); 3648 return *objectPaintPropertiesMap().get(this);
3649 } 3649 }
3650 3650
3651 void LayoutObject::clearObjectPaintProperties() 3651 void LayoutObject::clearObjectPaintProperties()
3652 { 3652 {
3653 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); 3653 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
3654 objectPaintPropertiesMap().remove(this); 3654 objectPaintPropertiesMap().remove(this);
3655 } 3655 }
3656 3656
3657 std::ostream& operator<<(std::ostream& ostream, const LayoutObject& layoutObject )
3658 {
3659 return ostream << layoutObject.decoratedName();
3660 }
3661
3662 std::ostream& operator<<(std::ostream& ostream, LayoutObject* layoutObject)
3663 {
3664 if (!layoutObject)
3665 return ostream << "null";
3666 return ostream << *layoutObject;
3667 }
3668
3657 } // namespace blink 3669 } // namespace blink
3658 3670
3659 #ifndef NDEBUG 3671 #ifndef NDEBUG
3660 3672
3661 void showTree(const blink::LayoutObject* object) 3673 void showTree(const blink::LayoutObject* object)
3662 { 3674 {
3663 if (object) 3675 if (object)
3664 object->showTreeForThis(); 3676 object->showTreeForThis();
3665 else 3677 else
3666 fprintf(stderr, "Cannot showTree. Root is (nil)\n"); 3678 fprintf(stderr, "Cannot showTree. Root is (nil)\n");
(...skipping 18 matching lines...) Expand all
3685 const blink::LayoutObject* root = object1; 3697 const blink::LayoutObject* root = object1;
3686 while (root->parent()) 3698 while (root->parent())
3687 root = root->parent(); 3699 root = root->parent();
3688 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3700 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3689 } else { 3701 } else {
3690 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3702 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3691 } 3703 }
3692 } 3704 }
3693 3705
3694 #endif 3706 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/api/LineLayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698