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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2264663002: Paint solid color backgrounds which are equivalent to locally attached into scrolling contents layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scrollcontent-paint-bg
Patch Set: Add test and only skip local equivalence if outline enters padding-box Created 4 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
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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 527
528 // Background properties. 528 // Background properties.
529 // background-color 529 // background-color
530 static Color initialBackgroundColor() { return Color::transparent; } 530 static Color initialBackgroundColor() { return Color::transparent; }
531 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color , v); } 531 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color , v); }
532 532
533 // background-image 533 // background-image
534 bool hasBackgroundImage() const { return m_background->background().hasImage (); } 534 bool hasBackgroundImage() const { return m_background->background().hasImage (); }
535 bool hasFixedBackgroundImage() const { return m_background->background().has FixedImage(); } 535 bool hasFixedBackgroundImage() const { return m_background->background().has FixedImage(); }
536 bool hasEntirelyFixedBackground() const; 536 bool hasEntirelyFixedBackground() const;
537 bool hasEntirelyLocalBackground() const;
538 537
539 // background-clip 538 // background-clip
540 EFillBox backgroundClip() const { return static_cast<EFillBox>(m_background- >background().clip()); } 539 EFillBox backgroundClip() const { return static_cast<EFillBox>(m_background- >background().clip()); }
541 540
542 // Border properties. 541 // Border properties.
543 // -webkit-border-image 542 // -webkit-border-image
544 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } 543 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); }
545 const NinePieceImage& borderImage() const { return m_surround->border.image( ); } 544 const NinePieceImage& borderImage() const { return m_surround->border.image( ); }
546 void setBorderImage(const NinePieceImage& b) { SET_VAR(m_surround, border.m_ image, b); } 545 void setBorderImage(const NinePieceImage& b) { SET_VAR(m_surround, border.m_ image, b); }
547 546
(...skipping 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 } 2612 }
2614 2613
2615 inline bool ComputedStyle::hasPseudoElementStyle() const 2614 inline bool ComputedStyle::hasPseudoElementStyle() const
2616 { 2615 {
2617 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 2616 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
2618 } 2617 }
2619 2618
2620 } // namespace blink 2619 } // namespace blink
2621 2620
2622 #endif // ComputedStyle_h 2621 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698