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

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

Issue 1310603003: Recalc custom scrollbar style. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | 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) 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 LayoutObject* parentToInvalidate = parent(); 228 LayoutObject* parentToInvalidate = parent();
229 for (unsigned i = 0; i < backgroundObscurationTestMaxDepth && parentToIn validate; ++i) { 229 for (unsigned i = 0; i < backgroundObscurationTestMaxDepth && parentToIn validate; ++i) {
230 parentToInvalidate->invalidateBackgroundObscurationStatus(); 230 parentToInvalidate->invalidateBackgroundObscurationStatus();
231 parentToInvalidate = parentToInvalidate->parent(); 231 parentToInvalidate = parentToInvalidate->parent();
232 } 232 }
233 } 233 }
234 234
235 if (isDocumentElement() || isBody()) { 235 if (isDocumentElement() || isBody()) {
236 document().view()->recalculateScrollbarOverlayStyle(); 236 document().view()->recalculateScrollbarOverlayStyle();
237 document().view()->recalculateCustomScrollbarStyle(); 237 document().view()->recalculateCustomScrollbarStyle();
238 LayoutView* layoutView = view();
239 bool rootLayerScrolls = document().settings() && document().settings()-> rootLayerScrolls();
skobes 2015/08/26 18:56:08 I think you don't need to check the root layer scr
240 if (layoutView && rootLayerScrolls) {
241 if (DeprecatedPaintLayerScrollableArea* scrollableArea = layoutView- >scrollableArea()) {
242 if (scrollableArea->horizontalScrollbar() && scrollableArea->hor izontalScrollbar()->isCustomScrollbar())
243 scrollableArea->horizontalScrollbar()->styleChanged();
244 if (scrollableArea->verticalScrollbar() && scrollableArea->verti calScrollbar()->isCustomScrollbar())
245 scrollableArea->verticalScrollbar()->styleChanged();
246 }
247 }
238 } 248 }
249
239 updateShapeOutsideInfoAfterStyleChange(*style(), oldStyle); 250 updateShapeOutsideInfoAfterStyleChange(*style(), oldStyle);
240 updateGridPositionAfterStyleChange(oldStyle); 251 updateGridPositionAfterStyleChange(oldStyle);
241 252
242 if (LayoutMultiColumnSpannerPlaceholder* placeholder = this->spannerPlacehol der()) 253 if (LayoutMultiColumnSpannerPlaceholder* placeholder = this->spannerPlacehol der())
243 placeholder->layoutObjectInFlowThreadStyleDidChange(oldStyle); 254 placeholder->layoutObjectInFlowThreadStyleDidChange(oldStyle);
244 255
245 updateSlowRepaintStatusAfterStyleChange(); 256 updateSlowRepaintStatusAfterStyleChange();
246 } 257 }
247 258
248 void LayoutBox::updateSlowRepaintStatusAfterStyleChange() 259 void LayoutBox::updateSlowRepaintStatusAfterStyleChange()
(...skipping 4487 matching lines...) Expand 10 before | Expand all | Expand 10 after
4736 StyleImage* borderImage = style()->borderImage().image(); 4747 StyleImage* borderImage = style()->borderImage().image();
4737 return borderImage && borderImage->canRender(*this, style()->effectiveZoom() ) && borderImage->isLoaded(); 4748 return borderImage && borderImage->canRender(*this, style()->effectiveZoom() ) && borderImage->isLoaded();
4738 } 4749 }
4739 4750
4740 ShapeOutsideInfo* LayoutBox::shapeOutsideInfo() const 4751 ShapeOutsideInfo* LayoutBox::shapeOutsideInfo() const
4741 { 4752 {
4742 return ShapeOutsideInfo::isEnabledFor(*this) ? ShapeOutsideInfo::info(*this) : nullptr; 4753 return ShapeOutsideInfo::isEnabledFor(*this) ? ShapeOutsideInfo::info(*this) : nullptr;
4743 } 4754 }
4744 4755
4745 } // namespace blink 4756 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698