| Index: Source/modules/crypto/AesCbcParams.cpp
|
| diff --git a/Source/core/html/ime/Composition.cpp b/Source/modules/crypto/AesCbcParams.cpp
|
| similarity index 80%
|
| copy from Source/core/html/ime/Composition.cpp
|
| copy to Source/modules/crypto/AesCbcParams.cpp
|
| index e74501bcd8637afa85872dae701e91f04827e1ee..cce588ca6dd39a053adfc7282818a16f79139c85 100644
|
| --- a/Source/core/html/ime/Composition.cpp
|
| +++ b/Source/modules/crypto/AesCbcParams.cpp
|
| @@ -29,25 +29,23 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/html/ime/Composition.h"
|
| +#include "modules/crypto/AesCbcParams.h"
|
|
|
| -#include "core/dom/Node.h"
|
| -#include "core/dom/Range.h"
|
| +#include "public/platform/WebCryptoAlgorithmParams.h"
|
|
|
| namespace WebCore {
|
|
|
| -Composition::~Composition()
|
| +Uint8Array* AesCbcParams::iv()
|
| {
|
| + if (!m_iv) {
|
| + const WebKit::WebVector<unsigned char>& iv = m_algorithm.aesCbcParams()->iv();
|
| + m_iv = Uint8Array::create(iv.data(), iv.size());
|
| + }
|
| + return m_iv.get();
|
| }
|
|
|
| -PassRefPtr<Composition> Composition::create(Node* text, Range* caret)
|
| -{
|
| - return adoptRef(new Composition(text, caret));
|
| -}
|
| -
|
| -Composition::Composition(Node* text, Range* caret)
|
| - : m_text(text)
|
| - , m_caret(caret)
|
| +AesCbcParams::AesCbcParams(const WebKit::WebCryptoAlgorithm& algorithm)
|
| + : Algorithm(algorithm)
|
| {
|
| ScriptWrappable::init(this);
|
| }
|
|
|