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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 306483011: Combine background repaint conditions in RenderStyle and RenderObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing small-apple.jpg Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 bool isFloating() const { return noninherited_flags._floating != NoFloat; } 398 bool isFloating() const { return noninherited_flags._floating != NoFloat; }
399 bool hasMargin() const { return surround->margin.nonZero(); } 399 bool hasMargin() const { return surround->margin.nonZero(); }
400 bool hasBorder() const { return surround->border.hasBorder(); } 400 bool hasBorder() const { return surround->border.hasBorder(); }
401 bool hasPadding() const { return surround->padding.nonZero(); } 401 bool hasPadding() const { return surround->padding.nonZero(); }
402 bool hasOffset() const { return surround->offset.nonZero(); } 402 bool hasOffset() const { return surround->offset.nonZero(); }
403 bool hasMarginBeforeQuirk() const { return marginBefore().quirk(); } 403 bool hasMarginBeforeQuirk() const { return marginBefore().quirk(); }
404 bool hasMarginAfterQuirk() const { return marginAfter().quirk(); } 404 bool hasMarginAfterQuirk() const { return marginAfter().quirk(); }
405 405
406 bool hasBackgroundImage() const { return m_background->background().hasImage (); } 406 bool hasBackgroundImage() const { return m_background->background().hasImage (); }
407 bool hasFixedBackgroundImage() const { return m_background->background().has FixedImage(); } 407 bool hasFixedBackgroundImage() const { return m_background->background().has FixedImage(); }
408 bool backgroundImageNeedsFullRepaintOnContainerWidthChange() const { return m_background->background().needsFullRepaintOnContainerWidthChange(); }
409 bool backgroundImageNeedsFullRepaintOnContainerHeightChange() const { return m_background->background().needsFullRepaintOnContainerHeightChange(); }
410 408
411 bool hasEntirelyFixedBackground() const; 409 bool hasEntirelyFixedBackground() const;
412 410
413 bool hasAppearance() const { return appearance() != NoControlPart; } 411 bool hasAppearance() const { return appearance() != NoControlPart; }
414 412
415 bool hasBackground() const 413 bool hasBackground() const
416 { 414 {
417 Color color = visitedDependentColor(CSSPropertyBackgroundColor); 415 Color color = visitedDependentColor(CSSPropertyBackgroundColor);
418 if (color.alpha()) 416 if (color.alpha())
419 return true; 417 return true;
(...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 inline bool RenderStyle::hasPseudoElementStyle() const 1882 inline bool RenderStyle::hasPseudoElementStyle() const
1885 { 1883 {
1886 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1884 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1887 } 1885 }
1888 1886
1889 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1887 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1890 1888
1891 } // namespace WebCore 1889 } // namespace WebCore
1892 1890
1893 #endif // RenderStyle_h 1891 #endif // RenderStyle_h
OLDNEW
« Source/core/rendering/RenderObject.cpp ('K') | « Source/core/rendering/style/FillLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698