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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 140733004: Remove LayoutIndicator which is basically dead code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/rendering/LayoutIndicator.cpp ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef RenderObject_h 26 #ifndef RenderObject_h
27 #define RenderObject_h 27 #define RenderObject_h
28 28
29 #include "core/dom/Element.h" 29 #include "core/dom/Element.h"
30 #include "core/dom/Position.h" 30 #include "core/dom/Position.h"
31 #include "core/dom/StyleEngine.h" 31 #include "core/dom/StyleEngine.h"
32 #include "core/fetch/ImageResourceClient.h" 32 #include "core/fetch/ImageResourceClient.h"
33 #include "core/rendering/CompositingState.h" 33 #include "core/rendering/CompositingState.h"
34 #include "core/rendering/LayoutIndicator.h"
35 #include "core/rendering/PaintPhase.h" 34 #include "core/rendering/PaintPhase.h"
36 #include "core/rendering/RenderObjectChildList.h" 35 #include "core/rendering/RenderObjectChildList.h"
37 #include "core/rendering/ScrollAlignment.h" 36 #include "core/rendering/ScrollAlignment.h"
38 #include "core/rendering/SubtreeLayoutScope.h" 37 #include "core/rendering/SubtreeLayoutScope.h"
39 #include "core/rendering/style/RenderStyle.h" 38 #include "core/rendering/style/RenderStyle.h"
40 #include "core/rendering/style/StyleInheritedData.h" 39 #include "core/rendering/style/StyleInheritedData.h"
41 #include "platform/geometry/FloatQuad.h" 40 #include "platform/geometry/FloatQuad.h"
42 #include "platform/geometry/LayoutRect.h" 41 #include "platform/geometry/LayoutRect.h"
43 #include "platform/transforms/TransformationMatrix.h" 42 #include "platform/transforms/TransformationMatrix.h"
44 43
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 // Returns true if this renderer is rooted, and optionally returns the hosti ng view (the root of the hierarchy). 583 // Returns true if this renderer is rooted, and optionally returns the hosti ng view (the root of the hierarchy).
585 bool isRooted(RenderView** = 0) const; 584 bool isRooted(RenderView** = 0) const;
586 585
587 Node* node() const 586 Node* node() const
588 { 587 {
589 return isAnonymous() ? 0 : m_node; 588 return isAnonymous() ? 0 : m_node;
590 } 589 }
591 590
592 Node* nonPseudoNode() const 591 Node* nonPseudoNode() const
593 { 592 {
594 ASSERT(!LayoutIndicator::inLayout());
595 return isPseudoElement() ? 0 : node(); 593 return isPseudoElement() ? 0 : node();
596 } 594 }
597 595
598 // FIXME: Why does RenderWidget need this? 596 // FIXME: Why does RenderWidget need this?
599 void clearNode() { m_node = 0; } 597 void clearNode() { m_node = 0; }
600 598
601 // Returns the styled node that caused the generation of this renderer. 599 // Returns the styled node that caused the generation of this renderer.
602 // This is the same as node() except for renderers of :before and :after 600 // This is the same as node() except for renderers of :before and :after
603 // pseudo elements for which their parent node is returned. 601 // pseudo elements for which their parent node is returned.
604 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh adowHostNode() : node(); } 602 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh adowHostNode() : node(); }
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 void showTree(const WebCore::RenderObject*); 1425 void showTree(const WebCore::RenderObject*);
1428 void showLineTree(const WebCore::RenderObject*); 1426 void showLineTree(const WebCore::RenderObject*);
1429 void showRenderTree(const WebCore::RenderObject* object1); 1427 void showRenderTree(const WebCore::RenderObject* object1);
1430 // We don't make object2 an optional parameter so that showRenderTree 1428 // We don't make object2 an optional parameter so that showRenderTree
1431 // can be called from gdb easily. 1429 // can be called from gdb easily.
1432 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1430 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1433 1431
1434 #endif 1432 #endif
1435 1433
1436 #endif // RenderObject_h 1434 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/LayoutIndicator.cpp ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698