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

Side by Side Diff: Source/core/rendering/RenderObject.cpp

Issue 152623002: Make StyleChange parameter explicit in setNeedsStyleRecalc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/core/rendering/RenderTextControl.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 * (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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2747 matching lines...) Expand 10 before | Expand all | Expand 10 after
2758 PositionWithAffinity RenderObject::positionForPoint(const LayoutPoint&) 2758 PositionWithAffinity RenderObject::positionForPoint(const LayoutPoint&)
2759 { 2759 {
2760 return createPositionWithAffinity(caretMinOffset(), DOWNSTREAM); 2760 return createPositionWithAffinity(caretMinOffset(), DOWNSTREAM);
2761 } 2761 }
2762 2762
2763 void RenderObject::updateDragState(bool dragOn) 2763 void RenderObject::updateDragState(bool dragOn)
2764 { 2764 {
2765 bool valueChanged = (dragOn != isDragging()); 2765 bool valueChanged = (dragOn != isDragging());
2766 setIsDragging(dragOn); 2766 setIsDragging(dragOn);
2767 if (valueChanged && node() && (style()->affectedByDrag() || (node()->isEleme ntNode() && toElement(node())->childrenAffectedByDrag()))) 2767 if (valueChanged && node() && (style()->affectedByDrag() || (node()->isEleme ntNode() && toElement(node())->childrenAffectedByDrag())))
2768 node()->setNeedsStyleRecalc(); 2768 node()->setNeedsStyleRecalc(SubtreeStyleChange);
2769 for (RenderObject* curr = firstChild(); curr; curr = curr->nextSibling()) 2769 for (RenderObject* curr = firstChild(); curr; curr = curr->nextSibling())
2770 curr->updateDragState(dragOn); 2770 curr->updateDragState(dragOn);
2771 } 2771 }
2772 2772
2773 CompositingState RenderObject::compositingState() const 2773 CompositingState RenderObject::compositingState() const
2774 { 2774 {
2775 return hasLayer() ? toRenderLayerModelObject(this)->layer()->compositingStat e() : NotComposited; 2775 return hasLayer() ? toRenderLayerModelObject(this)->layer()->compositingStat e() : NotComposited;
2776 } 2776 }
2777 2777
2778 bool RenderObject::acceleratedCompositingForOverflowScrollEnabled() const 2778 bool RenderObject::acceleratedCompositingForOverflowScrollEnabled() const
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
3381 { 3381 {
3382 if (object1) { 3382 if (object1) {
3383 const WebCore::RenderObject* root = object1; 3383 const WebCore::RenderObject* root = object1;
3384 while (root->parent()) 3384 while (root->parent())
3385 root = root->parent(); 3385 root = root->parent();
3386 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3386 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3387 } 3387 }
3388 } 3388 }
3389 3389
3390 #endif 3390 #endif
OLDNEW
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/core/rendering/RenderTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698