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

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

Issue 570763003: Remove unneeded bool from RenderView::selectionBounds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined (again and again) Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderListMarker.cpp ('k') | Source/core/rendering/RenderReplaced.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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 917
918 // The current selection state for an object. For blocks, the state refers to the state of the leaf 918 // The current selection state for an object. For blocks, the state refers to the state of the leaf
919 // descendants (as described above in the SelectionState enum declaration). 919 // descendants (as described above in the SelectionState enum declaration).
920 SelectionState selectionState() const { return m_bitfields.selectionState(); } 920 SelectionState selectionState() const { return m_bitfields.selectionState(); }
921 virtual void setSelectionState(SelectionState state) { m_bitfields.setSelect ionState(state); } 921 virtual void setSelectionState(SelectionState state) { m_bitfields.setSelect ionState(state); }
922 inline void setSelectionStateIfNeeded(SelectionState); 922 inline void setSelectionStateIfNeeded(SelectionState);
923 bool canUpdateSelectionOnRootLineBoxes(); 923 bool canUpdateSelectionOnRootLineBoxes();
924 924
925 // A single rectangle that encompasses all of the selected objects within th is object. Used to determine the tightest 925 // A single rectangle that encompasses all of the selected objects within th is object. Used to determine the tightest
926 // possible bounding box for the selection. The rect returned is in the coor dinate space of the paint invalidation container's backing. 926 // possible bounding box for the selection. The rect returned is in the coor dinate space of the paint invalidation container's backing.
927 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO bject* /*paintInvalidationContainer*/, bool /*clipToVisibleContent*/ = true) con st { return LayoutRect(); } 927 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO bject* /*paintInvalidationContainer*/) const { return LayoutRect(); }
928 928
929 virtual bool canBeSelectionLeaf() const { return false; } 929 virtual bool canBeSelectionLeaf() const { return false; }
930 bool hasSelectedChildren() const { return selectionState() != SelectionNone; } 930 bool hasSelectedChildren() const { return selectionState() != SelectionNone; }
931 931
932 bool isSelectable() const; 932 bool isSelectable() const;
933 // Obtains the selection colors that should be used when painting a selectio n. 933 // Obtains the selection colors that should be used when painting a selectio n.
934 Color selectionBackgroundColor() const; 934 Color selectionBackgroundColor() const;
935 Color selectionForegroundColor() const; 935 Color selectionForegroundColor() const;
936 Color selectionEmphasisMarkColor() const; 936 Color selectionEmphasisMarkColor() const;
937 937
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 void showTree(const blink::RenderObject*); 1574 void showTree(const blink::RenderObject*);
1575 void showLineTree(const blink::RenderObject*); 1575 void showLineTree(const blink::RenderObject*);
1576 void showRenderTree(const blink::RenderObject* object1); 1576 void showRenderTree(const blink::RenderObject* object1);
1577 // We don't make object2 an optional parameter so that showRenderTree 1577 // We don't make object2 an optional parameter so that showRenderTree
1578 // can be called from gdb easily. 1578 // can be called from gdb easily.
1579 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1579 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1580 1580
1581 #endif 1581 #endif
1582 1582
1583 #endif // RenderObject_h 1583 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListMarker.cpp ('k') | Source/core/rendering/RenderReplaced.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698