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

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

Issue 886923003: Inline two methods with only one caller. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | sky/engine/core/rendering/RenderBox.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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 bool hasSameDirectionAs(const RenderBox* object) const { return style()->dir ection() == object->style()->direction(); } 426 bool hasSameDirectionAs(const RenderBox* object) const { return style()->dir ection() == object->style()->direction(); }
427 427
428 protected: 428 protected:
429 virtual void willBeDestroyed() override; 429 virtual void willBeDestroyed() override;
430 430
431 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) o verride; 431 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) o verride;
432 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride; 432 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride;
433 virtual void updateFromStyle() override; 433 virtual void updateFromStyle() override;
434 434
435 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg roundColor, BackgroundBleedAvoidance = BackgroundBleedNone); 435 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg roundColor, BackgroundBleedAvoidance = BackgroundBleedNone);
436
437 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, RenderObject* backgroundObject, bool skip BaseColor = false); 436 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, RenderObject* backgroundObject, bool skip BaseColor = false);
438 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, RenderObject* back groundObject = 0); 437 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, RenderObject* back groundObject = 0);
439
440 void paintMaskImages(const PaintInfo&, const LayoutRect&);
441 void paintBoxDecorationBackgroundWithRect(PaintInfo&, const LayoutPoint&, co nst LayoutRect&); 438 void paintBoxDecorationBackgroundWithRect(PaintInfo&, const LayoutPoint&, co nst LayoutRect&);
442 439
443 // Information extracted from RenderStyle for box painting. 440 // Information extracted from RenderStyle for box painting.
444 // These are always needed during box painting and recomputing them takes ti me. 441 // These are always needed during box painting and recomputing them takes ti me.
445 struct BoxDecorationData { 442 struct BoxDecorationData {
446 BoxDecorationData(const RenderStyle&); 443 BoxDecorationData(const RenderStyle&);
447 444
448 Color backgroundColor; 445 Color backgroundColor;
449 bool hasBackground; 446 bool hasBackground;
450 bool hasBorder; 447 bool hasBorder;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 if (UNLIKELY(inlineBoxWrapper() != 0)) 568 if (UNLIKELY(inlineBoxWrapper() != 0))
572 deleteLineBoxWrapper(); 569 deleteLineBoxWrapper();
573 } 570 }
574 571
575 ensureRareData().m_inlineBoxWrapper = boxWrapper; 572 ensureRareData().m_inlineBoxWrapper = boxWrapper;
576 } 573 }
577 574
578 } // namespace blink 575 } // namespace blink
579 576
580 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ 577 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698