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

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

Issue 2171493003: [Editing][DOM][CodeHealth] Make Node::hasEditableStyle global functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 7 * Copyright (C) 2013 Adobe Systems Incorporated. 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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 if (node && node->isDocumentNode()) 800 if (node && node->isDocumentNode())
801 return true; 801 return true;
802 802
803 if (!hasOverflowClip()) 803 if (!hasOverflowClip())
804 return false; 804 return false;
805 805
806 bool hasScrollableOverflow = hasScrollableOverflowX() || hasScrollableOverfl owY(); 806 bool hasScrollableOverflow = hasScrollableOverflowX() || hasScrollableOverfl owY();
807 if (scrollsOverflow() && hasScrollableOverflow) 807 if (scrollsOverflow() && hasScrollableOverflow)
808 return true; 808 return true;
809 809
810 return node && node->hasEditableStyle(); 810 return node && hasEditableStyle(*node);
811 } 811 }
812 812
813 void LayoutBox::autoscroll(const IntPoint& positionInRootFrame) 813 void LayoutBox::autoscroll(const IntPoint& positionInRootFrame)
814 { 814 {
815 LocalFrame* frame = this->frame(); 815 LocalFrame* frame = this->frame();
816 if (!frame) 816 if (!frame)
817 return; 817 return;
818 818
819 FrameView* frameView = frame->view(); 819 FrameView* frameView = frame->view();
820 if (!frameView) 820 if (!frameView)
(...skipping 4141 matching lines...) Expand 10 before | Expand all | Expand 10 after
4962 m_rareData->m_snapAreas->remove(&snapArea); 4962 m_rareData->m_snapAreas->remove(&snapArea);
4963 } 4963 }
4964 } 4964 }
4965 4965
4966 SnapAreaSet* LayoutBox::snapAreas() const 4966 SnapAreaSet* LayoutBox::snapAreas() const
4967 { 4967 {
4968 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr; 4968 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr;
4969 } 4969 }
4970 4970
4971 } // namespace blink 4971 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698