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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Split up didRecalcStyle into didRecalcStyle and didRebuildLayoutTree Created 3 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
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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 } 339 }
340 340
341 bool HTMLFormControlElement::isRequired() const { 341 bool HTMLFormControlElement::isRequired() const {
342 return fastHasAttribute(requiredAttr); 342 return fastHasAttribute(requiredAttr);
343 } 343 }
344 344
345 String HTMLFormControlElement::resultForDialogSubmit() { 345 String HTMLFormControlElement::resultForDialogSubmit() {
346 return fastGetAttribute(valueAttr); 346 return fastGetAttribute(valueAttr);
347 } 347 }
348 348
349 void HTMLFormControlElement::didRecalcStyle() { 349 void HTMLFormControlElement::didRebuildLayoutTree() {
350 if (LayoutObject* layoutObject = this->layoutObject()) 350 if (LayoutObject* layoutObject = this->layoutObject())
351 layoutObject->updateFromElement(); 351 layoutObject->updateFromElement();
352 } 352 }
353 353
354 bool HTMLFormControlElement::supportsFocus() const { 354 bool HTMLFormControlElement::supportsFocus() const {
355 return !isDisabledFormControl(); 355 return !isDisabledFormControl();
356 } 356 }
357 357
358 bool HTMLFormControlElement::isKeyboardFocusable() const { 358 bool HTMLFormControlElement::isKeyboardFocusable() const {
359 // Skip tabIndex check in a parent class. 359 // Skip tabIndex check in a parent class.
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 const Element& source) { 634 const Element& source) {
635 HTMLElement::copyNonAttributePropertiesFromElement(source); 635 HTMLElement::copyNonAttributePropertiesFromElement(source);
636 setNeedsValidityCheck(); 636 setNeedsValidityCheck();
637 } 637 }
638 638
639 void HTMLFormControlElement::associateWith(HTMLFormElement* form) { 639 void HTMLFormControlElement::associateWith(HTMLFormElement* form) {
640 associateByParser(form); 640 associateByParser(form);
641 }; 641 };
642 642
643 } // namespace blink 643 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698