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

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

Issue 324073002: Oilpan: Switch RefCountedGarbageCollected to GarbageCollectedFinalized for Node. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update Node base class list Created 6 years, 6 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 27 matching lines...) Expand all
38 38
39 inline ClearButtonElement::ClearButtonElement(Document& document, ClearButtonOwn er& clearButtonOwner) 39 inline ClearButtonElement::ClearButtonElement(Document& document, ClearButtonOwn er& clearButtonOwner)
40 : HTMLDivElement(document) 40 : HTMLDivElement(document)
41 , m_clearButtonOwner(&clearButtonOwner) 41 , m_clearButtonOwner(&clearButtonOwner)
42 , m_capturing(false) 42 , m_capturing(false)
43 { 43 {
44 } 44 }
45 45
46 PassRefPtrWillBeRawPtr<ClearButtonElement> ClearButtonElement::create(Document& document, ClearButtonOwner& clearButtonOwner) 46 PassRefPtrWillBeRawPtr<ClearButtonElement> ClearButtonElement::create(Document& document, ClearButtonOwner& clearButtonOwner)
47 { 47 {
48 RefPtrWillBeRawPtr<ClearButtonElement> element = adoptRefWillBeRefCountedGar bageCollected(new ClearButtonElement(document, clearButtonOwner)); 48 RefPtrWillBeRawPtr<ClearButtonElement> element = adoptRefWillBeNoop(new Clea rButtonElement(document, clearButtonOwner));
49 element->setShadowPseudoId(AtomicString("-webkit-clear-button", AtomicString ::ConstructFromLiteral)); 49 element->setShadowPseudoId(AtomicString("-webkit-clear-button", AtomicString ::ConstructFromLiteral));
50 element->setAttribute(idAttr, ShadowElementNames::clearButton()); 50 element->setAttribute(idAttr, ShadowElementNames::clearButton());
51 return element.release(); 51 return element.release();
52 } 52 }
53 53
54 void ClearButtonElement::detach(const AttachContext& context) 54 void ClearButtonElement::detach(const AttachContext& context)
55 { 55 {
56 if (m_capturing) { 56 if (m_capturing) {
57 if (LocalFrame* frame = document().frame()) 57 if (LocalFrame* frame = document().frame())
58 frame->eventHandler().setCapturingMouseEventsNode(nullptr); 58 frame->eventHandler().setCapturingMouseEventsNode(nullptr);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return true; 117 return true;
118 } 118 }
119 119
120 void ClearButtonElement::trace(Visitor* visitor) 120 void ClearButtonElement::trace(Visitor* visitor)
121 { 121 {
122 visitor->trace(m_clearButtonOwner); 122 visitor->trace(m_clearButtonOwner);
123 HTMLDivElement::trace(visitor); 123 HTMLDivElement::trace(visitor);
124 } 124 }
125 125
126 } 126 }
OLDNEW
« no previous file with comments | « Source/core/html/forms/TextFieldInputType.cpp ('k') | Source/core/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698