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

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

Issue 2280153002: Refactoring out the code in LayoutTreeAsText::writeLayoutObject. (Closed)
Patch Set: Codereview update Created 4 years, 3 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "core/page/AutoscrollController.h" 71 #include "core/page/AutoscrollController.h"
72 #include "core/page/Page.h" 72 #include "core/page/Page.h"
73 #include "core/paint/ObjectPaintInvalidator.h" 73 #include "core/paint/ObjectPaintInvalidator.h"
74 #include "core/paint/ObjectPaintProperties.h" 74 #include "core/paint/ObjectPaintProperties.h"
75 #include "core/paint/PaintLayer.h" 75 #include "core/paint/PaintLayer.h"
76 #include "core/style/ContentData.h" 76 #include "core/style/ContentData.h"
77 #include "core/style/CursorData.h" 77 #include "core/style/CursorData.h"
78 #include "platform/RuntimeEnabledFeatures.h" 78 #include "platform/RuntimeEnabledFeatures.h"
79 #include "platform/TracedValue.h" 79 #include "platform/TracedValue.h"
80 #include "platform/geometry/TransformState.h" 80 #include "platform/geometry/TransformState.h"
81 #include "platform/scroll/ScrollableArea.h"
81 #include "wtf/allocator/Partitions.h" 82 #include "wtf/allocator/Partitions.h"
82 #include "wtf/text/StringBuilder.h" 83 #include "wtf/text/StringBuilder.h"
83 #include "wtf/text/WTFString.h" 84 #include "wtf/text/WTFString.h"
84 #include <algorithm> 85 #include <algorithm>
85 #include <memory> 86 #include <memory>
86 #ifndef NDEBUG 87 #ifndef NDEBUG
87 #include <stdio.h> 88 #include <stdio.h>
88 #endif 89 #endif
89 90
90 namespace blink { 91 namespace blink {
(...skipping 3142 matching lines...) Expand 10 before | Expand all | Expand 10 after
3233 const blink::LayoutObject* root = object1; 3234 const blink::LayoutObject* root = object1;
3234 while (root->parent()) 3235 while (root->parent())
3235 root = root->parent(); 3236 root = root->parent();
3236 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3237 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3237 } else { 3238 } else {
3238 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3239 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3239 } 3240 }
3240 } 3241 }
3241 3242
3242 #endif 3243 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698