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

Side by Side Diff: Source/core/rendering/RenderScrollbar.cpp

Issue 15447002: Remove ~1750 superfluous includes from core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebase a few hours Created 7 years, 7 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/RenderRubyRun.cpp ('k') | Source/core/rendering/RenderSearchField.cpp » ('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) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/rendering/RenderScrollbar.h" 27 #include "core/rendering/RenderScrollbar.h"
28 28
29 #include "core/css/resolver/StyleResolver.h" 29 #include "core/css/resolver/StyleResolver.h"
30 #include "core/page/Frame.h" 30 #include "core/page/Frame.h"
31 #include "core/page/FrameView.h" 31 #include "core/page/FrameView.h"
32 #include "core/rendering/RenderPart.h" 32 #include "core/rendering/RenderPart.h"
33 #include "core/rendering/RenderScrollbarPart.h" 33 #include "core/rendering/RenderScrollbarPart.h"
34 #include "core/rendering/RenderScrollbarTheme.h" 34 #include "core/rendering/RenderScrollbarTheme.h"
35 #include "core/rendering/style/StyleInheritedData.h"
36 35
37 namespace WebCore { 36 namespace WebCore {
38 37
39 PassRefPtr<Scrollbar> RenderScrollbar::createCustomScrollbar(ScrollableArea* scr ollableArea, ScrollbarOrientation orientation, Node* ownerNode, Frame* owningFra me) 38 PassRefPtr<Scrollbar> RenderScrollbar::createCustomScrollbar(ScrollableArea* scr ollableArea, ScrollbarOrientation orientation, Node* ownerNode, Frame* owningFra me)
40 { 39 {
41 return adoptRef(new RenderScrollbar(scrollableArea, orientation, ownerNode, owningFrame)); 40 return adoptRef(new RenderScrollbar(scrollableArea, orientation, ownerNode, owningFrame));
42 } 41 }
43 42
44 RenderScrollbar::RenderScrollbar(ScrollableArea* scrollableArea, ScrollbarOrient ation orientation, Node* ownerNode, Frame* owningFrame) 43 RenderScrollbar::RenderScrollbar(ScrollableArea* scrollableArea, ScrollbarOrient ation orientation, Node* ownerNode, Frame* owningFrame)
45 : Scrollbar(scrollableArea, orientation, RegularScrollbar, RenderScrollbarTh eme::renderScrollbarTheme()) 44 : Scrollbar(scrollableArea, orientation, RegularScrollbar, RenderScrollbarTh eme::renderScrollbarTheme())
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 int RenderScrollbar::minimumThumbLength() 350 int RenderScrollbar::minimumThumbLength()
352 { 351 {
353 RenderScrollbarPart* partRenderer = m_parts.get(ThumbPart); 352 RenderScrollbarPart* partRenderer = m_parts.get(ThumbPart);
354 if (!partRenderer) 353 if (!partRenderer)
355 return 0; 354 return 0;
356 partRenderer->layout(); 355 partRenderer->layout();
357 return orientation() == HorizontalScrollbar ? partRenderer->width() : partRe nderer->height(); 356 return orientation() == HorizontalScrollbar ? partRenderer->width() : partRe nderer->height();
358 } 357 }
359 358
360 } 359 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderRubyRun.cpp ('k') | Source/core/rendering/RenderSearchField.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698