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: sky/engine/core/editing/markup.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/editing/VisibleSelection.cpp ('k') | sky/engine/core/events/AnimationEvent.h » ('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) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved.
4 * Copyright (C) 2011 Igalia S.L. 4 * Copyright (C) 2011 Igalia S.L.
5 * Copyright (C) 2011 Motorola Mobility. All rights reserved. 5 * Copyright (C) 2011 Motorola Mobility. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 AttributeChange(PassRefPtr<Element> element, const QualifiedName& name, cons t String& value) 72 AttributeChange(PassRefPtr<Element> element, const QualifiedName& name, cons t String& value)
73 : m_element(element), m_name(name), m_value(value) 73 : m_element(element), m_name(name), m_value(value)
74 { 74 {
75 } 75 }
76 76
77 void apply() 77 void apply()
78 { 78 {
79 m_element->setAttribute(m_name, AtomicString(m_value)); 79 m_element->setAttribute(m_name, AtomicString(m_value));
80 } 80 }
81 81
82 void trace(Visitor* visitor)
83 {
84 visitor->trace(m_element);
85 }
86
87 private: 82 private:
88 RefPtr<Element> m_element; 83 RefPtr<Element> m_element;
89 QualifiedName m_name; 84 QualifiedName m_name;
90 String m_value; 85 String m_value;
91 }; 86 };
92 87
93 } // namespace blink 88 } // namespace blink
94 89
95 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::AttributeChange); 90 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::AttributeChange);
96 91
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 if (!next || !next->isTextNode()) 554 if (!next || !next->isTextNode())
560 return; 555 return;
561 556
562 RefPtr<Text> textNext = toText(next); 557 RefPtr<Text> textNext = toText(next);
563 textNode->appendData(textNext->data()); 558 textNode->appendData(textNext->data());
564 if (textNext->parentNode()) // Might have been removed by mutation event. 559 if (textNext->parentNode()) // Might have been removed by mutation event.
565 textNext->remove(exceptionState); 560 textNext->remove(exceptionState);
566 } 561 }
567 562
568 } 563 }
OLDNEW
« no previous file with comments | « sky/engine/core/editing/VisibleSelection.cpp ('k') | sky/engine/core/events/AnimationEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698