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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTheme.cpp

Issue 1456953003: Revert of Calculate paint invalidation rect for scrollbars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 /** 1 /**
2 * This file is part of the theme implementation for form controls in WebCore. 2 * This file is part of the theme implementation for form controls in WebCore.
3 * 3 *
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc.
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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 return false; 441 return false;
442 442
443 // Default implementation assumes the controls don't respond to changes in : hover state 443 // Default implementation assumes the controls don't respond to changes in : hover state
444 if (state == HoverControlState && !supportsHover(o.styleRef())) 444 if (state == HoverControlState && !supportsHover(o.styleRef()))
445 return false; 445 return false;
446 446
447 // Assume pressed state is only responded to if the control is enabled. 447 // Assume pressed state is only responded to if the control is enabled.
448 if (state == PressedControlState && !isEnabled(o)) 448 if (state == PressedControlState && !isEnabled(o))
449 return false; 449 return false;
450 450
451 o.setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); 451 o.setShouldDoFullPaintInvalidation();
452 o.invalidateDisplayItemClientForNonCompositingDescendants();
452 return true; 453 return true;
453 } 454 }
454 455
455 ControlStates LayoutTheme::controlStatesForLayoutObject(const LayoutObject& o) 456 ControlStates LayoutTheme::controlStatesForLayoutObject(const LayoutObject& o)
456 { 457 {
457 ControlStates result = 0; 458 ControlStates result = 0;
458 if (isHovered(o)) { 459 if (isHovered(o)) {
459 result |= HoverControlState; 460 result |= HoverControlState;
460 if (isSpinUpButtonPartHovered(o)) 461 if (isSpinUpButtonPartHovered(o))
461 result |= SpinUpControlState; 462 result |= SpinUpControlState;
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 937
937 // padding - not honored by WinIE, needs to be removed. 938 // padding - not honored by WinIE, needs to be removed.
938 style.resetPadding(); 939 style.resetPadding();
939 940
940 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme) 941 // border - honored by WinIE, but looks terrible (just paints in the control box and turns off the Windows XP theme)
941 // for now, we will not honor it. 942 // for now, we will not honor it.
942 style.resetBorder(); 943 style.resetBorder();
943 } 944 }
944 945
945 } // namespace blink 946 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698