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

Side by Side Diff: Source/core/rendering/RenderObject.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 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 519
520 enum BoxDecorationState { 520 enum BoxDecorationState {
521 NoBoxDecorations, 521 NoBoxDecorations,
522 HasBoxDecorationsAndBackgroundObscurationStatusInvalid, 522 HasBoxDecorationsAndBackgroundObscurationStatusInvalid,
523 HasBoxDecorationsAndBackgroundIsKnownToBeObscured, 523 HasBoxDecorationsAndBackgroundIsKnownToBeObscured,
524 HasBoxDecorationsAndBackgroundMayBeVisible, 524 HasBoxDecorationsAndBackgroundMayBeVisible,
525 }; 525 };
526 bool hasBoxDecorations() const { return m_bitfields.boxDecorationState() != NoBoxDecorations; } 526 bool hasBoxDecorations() const { return m_bitfields.boxDecorationState() != NoBoxDecorations; }
527 bool backgroundIsKnownToBeObscured(); 527 bool backgroundIsKnownToBeObscured();
528 bool borderImageIsLoadedAndCanBeRendered() const; 528 bool borderImageIsLoadedAndCanBeRendered() const;
529 bool mustRepaintBackgroundOrBorder() const; 529 bool mustRepaintBackgroundOrBorderOnWidthChange() const;
530 bool mustRepaintBackgroundOrBorderOnHeightChange() const;
531 bool mustRepaintFillLayersOnWidthChange(const FillLayer*) const;
esprehn 2014/05/29 22:20:12 References
Xianzhu 2014/05/30 00:47:56 Done.
532 bool mustRepaintFillLayersOnHeightChange(const FillLayer*) const;
530 bool hasBackground() const { return style()->hasBackground(); } 533 bool hasBackground() const { return style()->hasBackground(); }
531 bool hasEntirelyFixedBackground() const; 534 bool hasEntirelyFixedBackground() const;
532 535
533 bool needsLayout() const 536 bool needsLayout() const
534 { 537 {
535 return m_bitfields.selfNeedsLayout() || m_bitfields.normalChildNeedsLayo ut() || m_bitfields.posChildNeedsLayout() 538 return m_bitfields.selfNeedsLayout() || m_bitfields.normalChildNeedsLayo ut() || m_bitfields.posChildNeedsLayout()
536 || m_bitfields.needsSimplifiedNormalFlowLayout() || m_bitfields.need sPositionedMovementLayout(); 539 || m_bitfields.needsSimplifiedNormalFlowLayout() || m_bitfields.need sPositionedMovementLayout();
537 } 540 }
538 541
539 bool selfNeedsLayout() const { return m_bitfields.selfNeedsLayout(); } 542 bool selfNeedsLayout() const { return m_bitfields.selfNeedsLayout(); }
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 void showTree(const WebCore::RenderObject*); 1481 void showTree(const WebCore::RenderObject*);
1479 void showLineTree(const WebCore::RenderObject*); 1482 void showLineTree(const WebCore::RenderObject*);
1480 void showRenderTree(const WebCore::RenderObject* object1); 1483 void showRenderTree(const WebCore::RenderObject* object1);
1481 // We don't make object2 an optional parameter so that showRenderTree 1484 // We don't make object2 an optional parameter so that showRenderTree
1482 // can be called from gdb easily. 1485 // can be called from gdb easily.
1483 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1486 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1484 1487
1485 #endif 1488 #endif
1486 1489
1487 #endif // RenderObject_h 1490 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698