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

Side by Side Diff: Source/core/html/HTMLBodyElement.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/dom/shadow/ShadowRoot.cpp ('k') | Source/core/html/HTMLElement.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 Simon Hausmann (hausmann@kde.org) 4 * (C) 2000 Simon Hausmann (hausmann@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 if (BisonCSSParser::parseColor(color, value, !document().inQuirksMod e())) { 105 if (BisonCSSParser::parseColor(color, value, !document().inQuirksMod e())) {
106 if (name == linkAttr) 106 if (name == linkAttr)
107 document().textLinkColors().setLinkColor(color); 107 document().textLinkColors().setLinkColor(color);
108 else if (name == vlinkAttr) 108 else if (name == vlinkAttr)
109 document().textLinkColors().setVisitedLinkColor(color); 109 document().textLinkColors().setVisitedLinkColor(color);
110 else 110 else
111 document().textLinkColors().setActiveLinkColor(color); 111 document().textLinkColors().setActiveLinkColor(color);
112 } 112 }
113 } 113 }
114 114
115 setNeedsStyleRecalc(); 115 setNeedsStyleRecalc(SubtreeStyleChange);
116 } else if (name == onloadAttr) 116 } else if (name == onloadAttr)
117 document().setWindowAttributeEventListener(EventTypeNames::load, createA ttributeEventListener(document().frame(), name, value)); 117 document().setWindowAttributeEventListener(EventTypeNames::load, createA ttributeEventListener(document().frame(), name, value));
118 else if (name == onbeforeunloadAttr) 118 else if (name == onbeforeunloadAttr)
119 document().setWindowAttributeEventListener(EventTypeNames::beforeunload, createAttributeEventListener(document().frame(), name, value)); 119 document().setWindowAttributeEventListener(EventTypeNames::beforeunload, createAttributeEventListener(document().frame(), name, value));
120 else if (name == onunloadAttr) 120 else if (name == onunloadAttr)
121 document().setWindowAttributeEventListener(EventTypeNames::unload, creat eAttributeEventListener(document().frame(), name, value)); 121 document().setWindowAttributeEventListener(EventTypeNames::unload, creat eAttributeEventListener(document().frame(), name, value));
122 else if (name == onpagehideAttr) 122 else if (name == onpagehideAttr)
123 document().setWindowAttributeEventListener(EventTypeNames::pagehide, cre ateAttributeEventListener(document().frame(), name, value)); 123 document().setWindowAttributeEventListener(EventTypeNames::pagehide, cre ateAttributeEventListener(document().frame(), name, value));
124 else if (name == onpageshowAttr) 124 else if (name == onpageshowAttr)
125 document().setWindowAttributeEventListener(EventTypeNames::pageshow, cre ateAttributeEventListener(document().frame(), name, value)); 125 document().setWindowAttributeEventListener(EventTypeNames::pageshow, cre ateAttributeEventListener(document().frame(), name, value));
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 int HTMLBodyElement::scrollWidth() 313 int HTMLBodyElement::scrollWidth()
314 { 314 {
315 // Update the document's layout. 315 // Update the document's layout.
316 Document& document = this->document(); 316 Document& document = this->document();
317 document.updateLayoutIgnorePendingStylesheets(); 317 document.updateLayoutIgnorePendingStylesheets();
318 FrameView* view = document.view(); 318 FrameView* view = document.view();
319 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; 319 return view ? adjustForZoom(view->contentsWidth(), &document) : 0;
320 } 320 }
321 321
322 } // namespace WebCore 322 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698