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

Side by Side Diff: sky/engine/core/rendering/RenderBox.cpp

Issue 689283003: Remove scroll corners and resizers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/rendering/RenderBox.h ('k') | sky/engine/core/rendering/RenderLayer.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) 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 LayoutRect rect = contentBoxRect(); 396 LayoutRect rect = contentBoxRect();
397 return localToAbsoluteQuad(FloatRect(rect)); 397 return localToAbsoluteQuad(FloatRect(rect));
398 } 398 }
399 399
400 void RenderBox::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& add itionalOffset, const RenderLayerModelObject*) const 400 void RenderBox::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& add itionalOffset, const RenderLayerModelObject*) const
401 { 401 {
402 if (!size().isEmpty()) 402 if (!size().isEmpty())
403 rects.append(pixelSnappedIntRect(additionalOffset, size())); 403 rects.append(pixelSnappedIntRect(additionalOffset, size()));
404 } 404 }
405 405
406 bool RenderBox::canResize() const
407 {
408 return hasOverflowClip() && style()->resize() != RESIZE_NONE;
409 }
410
411 void RenderBox::addLayerHitTestRects(LayerHitTestRects& layerRects, const Render Layer* currentLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const 406 void RenderBox::addLayerHitTestRects(LayerHitTestRects& layerRects, const Render Layer* currentLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const
412 { 407 {
413 LayoutPoint adjustedLayerOffset = layerOffset + locationOffset(); 408 LayoutPoint adjustedLayerOffset = layerOffset + locationOffset();
414 RenderBoxModelObject::addLayerHitTestRects(layerRects, currentLayer, adjuste dLayerOffset, containerRect); 409 RenderBoxModelObject::addLayerHitTestRects(layerRects, currentLayer, adjuste dLayerOffset, containerRect);
415 } 410 }
416 411
417 void RenderBox::computeSelfHitTestRects(Vector<LayoutRect>& rects, const LayoutP oint& layerOffset) const 412 void RenderBox::computeSelfHitTestRects(Vector<LayoutRect>& rects, const LayoutP oint& layerOffset) const
418 { 413 {
419 if (!size().isEmpty()) 414 if (!size().isEmpty())
420 rects.append(LayoutRect(layerOffset, size())); 415 rects.append(LayoutRect(layerOffset, size()));
(...skipping 3424 matching lines...) Expand 10 before | Expand all | Expand 10 after
3845 3840
3846 RenderBox::BoxDecorationData::BoxDecorationData(const RenderStyle& style) 3841 RenderBox::BoxDecorationData::BoxDecorationData(const RenderStyle& style)
3847 { 3842 {
3848 backgroundColor = style.colorIncludingFallback(CSSPropertyBackgroundColor); 3843 backgroundColor = style.colorIncludingFallback(CSSPropertyBackgroundColor);
3849 hasBackground = backgroundColor.alpha() || style.hasBackgroundImage(); 3844 hasBackground = backgroundColor.alpha() || style.hasBackgroundImage();
3850 ASSERT(hasBackground == style.hasBackground()); 3845 ASSERT(hasBackground == style.hasBackground());
3851 hasBorder = style.hasBorder(); 3846 hasBorder = style.hasBorder();
3852 } 3847 }
3853 3848
3854 } // namespace blink 3849 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBox.h ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698