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

Side by Side Diff: Source/core/html/HTMLInputElement.h

Issue 23502003: Make InputType and InputTypeView RefCounted. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/html/FileInputType.cpp ('k') | Source/core/html/HTMLInputElement.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 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 bool m_isActivatedSubmit : 1; 394 bool m_isActivatedSubmit : 1;
395 unsigned m_autocomplete : 2; // AutoCompleteSetting 395 unsigned m_autocomplete : 2; // AutoCompleteSetting
396 bool m_isAutofilled : 1; 396 bool m_isAutofilled : 1;
397 bool m_hasNonEmptyList : 1; 397 bool m_hasNonEmptyList : 1;
398 bool m_stateRestored : 1; 398 bool m_stateRestored : 1;
399 bool m_parsingInProgress : 1; 399 bool m_parsingInProgress : 1;
400 bool m_valueAttributeWasUpdatedAfterParsing : 1; 400 bool m_valueAttributeWasUpdatedAfterParsing : 1;
401 bool m_wasModifiedByUser : 1; 401 bool m_wasModifiedByUser : 1;
402 bool m_canReceiveDroppedFiles : 1; 402 bool m_canReceiveDroppedFiles : 1;
403 bool m_hasTouchEventHandler : 1; 403 bool m_hasTouchEventHandler : 1;
404 OwnPtr<InputType> m_inputType; 404 RefPtr<InputType> m_inputType;
405 // The ImageLoader must be owned by this element because the loader code ass umes 405 // The ImageLoader must be owned by this element because the loader code ass umes
406 // that it lives as long as its owning element lives. If we move the loader into 406 // that it lives as long as its owning element lives. If we move the loader into
407 // the ImageInput object we may delete the loader while this element lives o n. 407 // the ImageInput object we may delete the loader while this element lives o n.
408 OwnPtr<HTMLImageLoader> m_imageLoader; 408 OwnPtr<HTMLImageLoader> m_imageLoader;
409 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver; 409 OwnPtr<ListAttributeTargetObserver> m_listAttributeTargetObserver;
410 }; 410 };
411 411
412 inline HTMLInputElement* toHTMLInputElement(Node* node) 412 inline HTMLInputElement* toHTMLInputElement(Node* node)
413 { 413 {
414 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag)); 414 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag));
415 return static_cast<HTMLInputElement*>(node); 415 return static_cast<HTMLInputElement*>(node);
416 } 416 }
417 417
418 inline const HTMLInputElement* toHTMLInputElement(const Node* node) 418 inline const HTMLInputElement* toHTMLInputElement(const Node* node)
419 { 419 {
420 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag)); 420 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::inputT ag));
421 return static_cast<const HTMLInputElement*>(node); 421 return static_cast<const HTMLInputElement*>(node);
422 } 422 }
423 423
424 // This will catch anyone doing an unnecessary cast. 424 // This will catch anyone doing an unnecessary cast.
425 void toHTMLElement(const HTMLElement*); 425 void toHTMLElement(const HTMLElement*);
426 426
427 427
428 } //namespace 428 } //namespace
429 #endif 429 #endif
OLDNEW
« no previous file with comments | « Source/core/html/FileInputType.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698