| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 285 |
| 286 void WebDocument::setIsTransitionDocument() | 286 void WebDocument::setIsTransitionDocument() |
| 287 { | 287 { |
| 288 // This ensures the transition UA stylesheet gets applied. | 288 // This ensures the transition UA stylesheet gets applied. |
| 289 unwrap<Document>()->setIsTransitionDocument(); | 289 unwrap<Document>()->setIsTransitionDocument(); |
| 290 } | 290 } |
| 291 | 291 |
| 292 void WebDocument::beginExitTransition(const WebString& cssSelector) | 292 void WebDocument::beginExitTransition(const WebString& cssSelector) |
| 293 { | 293 { |
| 294 RefPtrWillBeRawPtr<Document> document = unwrap<Document>(); | 294 RefPtrWillBeRawPtr<Document> document = unwrap<Document>(); |
| 295 document->hideTransitionElements(cssSelector); | 295 document->updateTransitionElementOpacity(cssSelector, 0.0); |
| 296 document->styleEngine()->enableExitTransitionStylesheets(); | 296 document->styleEngine()->enableExitTransitionStylesheets(); |
| 297 } | 297 } |
| 298 | 298 |
| 299 void WebDocument::updateTransitionElementOpacity(const WebString& cssSelector, d
ouble opacity) |
| 300 { |
| 301 RefPtrWillBeRawPtr<Document> document = unwrap<Document>(); |
| 302 document->updateTransitionElementOpacity(cssSelector, opacity); |
| 303 } |
| 304 |
| 299 WebAXObject WebDocument::accessibilityObject() const | 305 WebAXObject WebDocument::accessibilityObject() const |
| 300 { | 306 { |
| 301 const Document* document = constUnwrap<Document>(); | 307 const Document* document = constUnwrap<Document>(); |
| 302 AXObjectCache* cache = document->axObjectCache(); | 308 AXObjectCache* cache = document->axObjectCache(); |
| 303 return cache ? WebAXObject(cache->getOrCreateAXObjectFromRenderView(document
->renderView())) : WebAXObject(); | 309 return cache ? WebAXObject(cache->getOrCreateAXObjectFromRenderView(document
->renderView())) : WebAXObject(); |
| 304 } | 310 } |
| 305 | 311 |
| 306 WebAXObject WebDocument::accessibilityObjectFromID(int axID) const | 312 WebAXObject WebDocument::accessibilityObjectFromID(int axID) const |
| 307 { | 313 { |
| 308 const Document* document = constUnwrap<Document>(); | 314 const Document* document = constUnwrap<Document>(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 m_private = elem; | 367 m_private = elem; |
| 362 return *this; | 368 return *this; |
| 363 } | 369 } |
| 364 | 370 |
| 365 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const | 371 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const |
| 366 { | 372 { |
| 367 return toDocument(m_private.get()); | 373 return toDocument(m_private.get()); |
| 368 } | 374 } |
| 369 | 375 |
| 370 } // namespace blink | 376 } // namespace blink |
| OLD | NEW |