projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update To 11.40.268.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
Source
/
core
/
editing
/
WrapContentsInDummySpanCommand.cpp
diff --git
a/src/third_party/WebKit/Source/core/editing/WrapContentsInDummySpanCommand.cpp
b/src/third_party/WebKit/Source/core/editing/WrapContentsInDummySpanCommand.cpp
index
2a9f803
..
7a96bbe
100644
(file)
--- a/
src/third_party/WebKit/Source/core/editing/WrapContentsInDummySpanCommand.cpp
+++ b/
src/third_party/WebKit/Source/core/editing/WrapContentsInDummySpanCommand.cpp
@@
-44,9
+44,8
@@
void WrapContentsInDummySpanCommand::executeApply()
NodeVector children;
getChildNodes(*m_element, children);
NodeVector children;
getChildNodes(*m_element, children);
- size_t size = children.size();
- for (size_t i = 0; i < size; ++i)
- m_dummySpan->appendChild(children[i].release(), IGNORE_EXCEPTION);
+ for (auto& child : children)
+ m_dummySpan->appendChild(child.release(), IGNORE_EXCEPTION);
m_element->appendChild(m_dummySpan.get(), IGNORE_EXCEPTION);
}
m_element->appendChild(m_dummySpan.get(), IGNORE_EXCEPTION);
}
@@
-68,9
+67,8
@@
void WrapContentsInDummySpanCommand::doUnapply()
NodeVector children;
getChildNodes(*m_dummySpan, children);
NodeVector children;
getChildNodes(*m_dummySpan, children);
- size_t size = children.size();
- for (size_t i = 0; i < size; ++i)
- m_element->appendChild(children[i].release(), IGNORE_EXCEPTION);
+ for (auto& child : children)
+ m_element->appendChild(child.release(), IGNORE_EXCEPTION);
m_dummySpan->remove(IGNORE_EXCEPTION);
}
m_dummySpan->remove(IGNORE_EXCEPTION);
}