Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: Source/web/WebDocument.cpp

Issue 723073003: Navigation transitions (web to native app): Bug fix for hide/Show transition elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fix Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/web/tests/WebDocumentTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 299
300 void WebDocument::hideTransitionElements(const WebString& cssSelector) 300 void WebDocument::hideTransitionElements(const WebString& cssSelector)
301 { 301 {
302 RefPtrWillBeRawPtr<Document> document = unwrap<Document>(); 302 RefPtrWillBeRawPtr<Document> document = unwrap<Document>();
303 document->hideTransitionElements(cssSelector); 303 document->hideTransitionElements(cssSelector);
304 } 304 }
305 305
306 void WebDocument::showTransitionElements(const WebString& cssSelector) 306 void WebDocument::showTransitionElements(const WebString& cssSelector)
307 { 307 {
308 RefPtrWillBeRawPtr<Document> document = unwrap<Document>(); 308 RefPtrWillBeRawPtr<Document> document = unwrap<Document>();
309 document->hideTransitionElements(cssSelector); 309 document->showTransitionElements(cssSelector);
310 } 310 }
311 311
312 WebAXObject WebDocument::accessibilityObject() const 312 WebAXObject WebDocument::accessibilityObject() const
313 { 313 {
314 const Document* document = constUnwrap<Document>(); 314 const Document* document = constUnwrap<Document>();
315 AXObjectCache* cache = document->axObjectCache(); 315 AXObjectCache* cache = document->axObjectCache();
316 return cache ? WebAXObject(cache->getOrCreateAXObjectFromRenderView(document ->renderView())) : WebAXObject(); 316 return cache ? WebAXObject(cache->getOrCreateAXObjectFromRenderView(document ->renderView())) : WebAXObject();
317 } 317 }
318 318
319 WebAXObject WebDocument::accessibilityObjectFromID(int axID) const 319 WebAXObject WebDocument::accessibilityObjectFromID(int axID) const
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 m_private = elem; 374 m_private = elem;
375 return *this; 375 return *this;
376 } 376 }
377 377
378 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const 378 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const
379 { 379 {
380 return toDocument(m_private.get()); 380 return toDocument(m_private.get());
381 } 381 }
382 382
383 } // namespace blink 383 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/web/tests/WebDocumentTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698