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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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->hideTransitionElements(cssSelector); |
296 document->styleEngine()->enableExitTransitionStylesheets(); | 296 document->styleEngine()->enableExitTransitionStylesheets(); |
297 } | 297 } |
298 | 298 |
299 void WebDocument::hideTransitionElements(const WebString& cssSelector) | |
300 { | |
301 RefPtrWillBeRawPtr<Document> document = unwrap<Document>(); | |
302 document->hideTransitionElements(cssSelector); | |
303 } | |
304 | |
305 void WebDocument::showTransitionElements(const WebString& cssSelector) | |
306 { | |
307 RefPtrWillBeRawPtr<Document> document = unwrap<Document>(); | |
308 document->hideTransitionElements(cssSelector); | |
shatch
2014/11/13 14:38:34
Should this be showTransitionElements?
Zhen Wang
2014/11/13 15:42:49
Oh, right. I will fix this. Is there a way to test
Zhen Wang
2014/11/13 21:55:10
As a note, this is fixed in https://codereview.chr
| |
309 } | |
310 | |
299 WebAXObject WebDocument::accessibilityObject() const | 311 WebAXObject WebDocument::accessibilityObject() const |
300 { | 312 { |
301 const Document* document = constUnwrap<Document>(); | 313 const Document* document = constUnwrap<Document>(); |
302 AXObjectCache* cache = document->axObjectCache(); | 314 AXObjectCache* cache = document->axObjectCache(); |
303 return cache ? WebAXObject(cache->getOrCreateAXObjectFromRenderView(document ->renderView())) : WebAXObject(); | 315 return cache ? WebAXObject(cache->getOrCreateAXObjectFromRenderView(document ->renderView())) : WebAXObject(); |
304 } | 316 } |
305 | 317 |
306 WebAXObject WebDocument::accessibilityObjectFromID(int axID) const | 318 WebAXObject WebDocument::accessibilityObjectFromID(int axID) const |
307 { | 319 { |
308 const Document* document = constUnwrap<Document>(); | 320 const Document* document = constUnwrap<Document>(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
361 m_private = elem; | 373 m_private = elem; |
362 return *this; | 374 return *this; |
363 } | 375 } |
364 | 376 |
365 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const | 377 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const |
366 { | 378 { |
367 return toDocument(m_private.get()); | 379 return toDocument(m_private.get()); |
368 } | 380 } |
369 | 381 |
370 } // namespace blink | 382 } // namespace blink |
OLD | NEW |