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

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

Issue 2942163002: [Refactor] Moved scrollbar creation and deletion to ScrollbarManager (Closed)
Patch Set: bokan and skobes comments addressed Created 3 years, 5 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. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 3599 matching lines...) Expand 10 before | Expand all | Expand 10 after
3610 for (LayoutObject* child = SlowFirstChild(); child; 3610 for (LayoutObject* child = SlowFirstChild(); child;
3611 child = child->NextSibling()) { 3611 child = child->NextSibling()) {
3612 if (!child->CanBeSelectionLeaf()) 3612 if (!child->CanBeSelectionLeaf())
3613 continue; 3613 continue;
3614 if (child->GetSelectionState() == SelectionState::kNone) 3614 if (child->GetSelectionState() == SelectionState::kNone)
3615 continue; 3615 continue;
3616 child->SetShouldInvalidateSelection(); 3616 child->SetShouldInvalidateSelection();
3617 } 3617 }
3618 } 3618 }
3619 3619
3620 bool LayoutObject::HasCustomScrollbarStyle() const {
3621 return IsBox() && StyleRef().HasPseudoStyle(kPseudoIdScrollbar);
3622 }
3623
3620 } // namespace blink 3624 } // namespace blink
3621 3625
3622 #ifndef NDEBUG 3626 #ifndef NDEBUG
3623 3627
3624 void showTree(const blink::LayoutObject* object) { 3628 void showTree(const blink::LayoutObject* object) {
3625 if (object) 3629 if (object)
3626 object->ShowTreeForThis(); 3630 object->ShowTreeForThis();
3627 else 3631 else
3628 WTFLogAlways("%s", "Cannot showTree. Root is (nil)"); 3632 WTFLogAlways("%s", "Cannot showTree. Root is (nil)");
3629 } 3633 }
(...skipping 15 matching lines...) Expand all
3645 const blink::LayoutObject* root = object1; 3649 const blink::LayoutObject* root = object1;
3646 while (root->Parent()) 3650 while (root->Parent())
3647 root = root->Parent(); 3651 root = root->Parent();
3648 root->ShowLayoutTreeAndMark(object1, "*", object2, "-", 0); 3652 root->ShowLayoutTreeAndMark(object1, "*", object2, "-", 0);
3649 } else { 3653 } else {
3650 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3654 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3651 } 3655 }
3652 } 3656 }
3653 3657
3654 #endif 3658 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698