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

Side by Side Diff: Source/core/html/shadow/DateTimeEditElement.cpp

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 DateTimeEditElement::DateTimeEditElement(Document& document, EditControlOwner& e ditControlOwner) 442 DateTimeEditElement::DateTimeEditElement(Document& document, EditControlOwner& e ditControlOwner)
443 : HTMLDivElement(document) 443 : HTMLDivElement(document)
444 , m_editControlOwner(&editControlOwner) 444 , m_editControlOwner(&editControlOwner)
445 { 445 {
446 setHasCustomStyleCallbacks(); 446 setHasCustomStyleCallbacks();
447 } 447 }
448 448
449 DateTimeEditElement::~DateTimeEditElement() 449 DateTimeEditElement::~DateTimeEditElement()
450 { 450 {
451 #if !ENABLE(OILPAN)
451 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) 452 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex)
452 m_fields[fieldIndex]->removeEventHandler(); 453 m_fields[fieldIndex]->removeEventHandler();
454 #endif
453 } 455 }
454 456
455 inline Element* DateTimeEditElement::fieldsWrapperElement() const 457 inline Element* DateTimeEditElement::fieldsWrapperElement() const
456 { 458 {
457 ASSERT(firstChild()); 459 ASSERT(firstChild());
458 return toElement(firstChild()); 460 return toElement(firstChild());
459 } 461 }
460 462
461 void DateTimeEditElement::addField(PassRefPtr<DateTimeFieldElement> field) 463 void DateTimeEditElement::addField(PassRefPtr<DateTimeFieldElement> field)
462 { 464 {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 { 798 {
797 DateTimeFieldsState dateTimeFieldsState; 799 DateTimeFieldsState dateTimeFieldsState;
798 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex) 800 for (size_t fieldIndex = 0; fieldIndex < m_fields.size(); ++fieldIndex)
799 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState); 801 m_fields[fieldIndex]->populateDateTimeFieldsState(dateTimeFieldsState);
800 return dateTimeFieldsState; 802 return dateTimeFieldsState;
801 } 803 }
802 804
803 } // namespace WebCore 805 } // namespace WebCore
804 806
805 #endif 807 #endif
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.cpp ('k') | Source/core/html/shadow/TextControlInnerElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698