diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-25 15:09:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-25 15:09:11 +0200 |
commit | a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd (patch) | |
tree | b7abd9f49ae1d4d2e426a5883bfccd42b8e2ee12 /Source/WebCore/testing/Internals.cpp | |
parent | 8d473cf9743f1d30a16a27114e93bd5af5648d23 (diff) | |
download | qtwebkit-a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd.tar.gz |
Imported WebKit commit eb5c1b8fe4d4b1b90b5137433fc58a91da0e6878 (http://svn.webkit.org/repository/webkit/trunk@118516)
Diffstat (limited to 'Source/WebCore/testing/Internals.cpp')
-rw-r--r-- | Source/WebCore/testing/Internals.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/WebCore/testing/Internals.cpp b/Source/WebCore/testing/Internals.cpp index e17185fc2..842e8e144 100644 --- a/Source/WebCore/testing/Internals.cpp +++ b/Source/WebCore/testing/Internals.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Google Inc. All rights reserved. + * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -399,6 +399,16 @@ void Internals::selectColorInColorChooser(Element* element, const String& colorV } #endif +PassRefPtr<ClientRect> Internals::absoluteCaretBounds(Document* document, ExceptionCode& ec) +{ + if (!document || !document->frame() || !document->frame()->selection()) { + ec = INVALID_ACCESS_ERR; + return ClientRect::create(); + } + + return ClientRect::create(document->frame()->selection()->absoluteCaretBounds()); +} + PassRefPtr<ClientRect> Internals::boundingBox(Element* element, ExceptionCode& ec) { if (!element) { @@ -463,8 +473,8 @@ void Internals::setBackgroundBlurOnNode(Node* node, int blurLength, ExceptionCod return; } - FilterOperations filters; - filters.operations().append(BlurFilterOperation::create(Length(blurLength, Fixed), FilterOperation::BLUR)); + WebKit::WebFilterOperations filters; + filters.append(WebKit::WebFilterOperation::createBlurFilter(blurLength)); platformLayer->setBackgroundFilters(filters); } #else |